class OtherClass {}
class MyClass1 extends OtherClass {
publicInstanceField = 1;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alexcvzz.vscode-sqlite | |
andys8.jest-snippets | |
apollographql.vscode-apollo | |
austincummings.razor-plus | |
bobsparadox.seti-black | |
BriteSnow.vscode-toggle-quotes | |
christian-kohler.npm-intellisense | |
christian-kohler.path-intellisense | |
CoenraadS.bracket-pair-colorizer | |
dbaeumer.vscode-eslint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
const parents = getNamedParents(this.$router.options.routes, this.$route.matched) | |
if (parents.length) { | |
return { | |
name: parents[parents.length - 1].name, | |
} | |
} | |
return { name: 'home' } | |
} |
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import spotipy | |
import spotipy.util as util | |
scope = 'user-library-read playlist-modify-private' | |
if len(sys.argv) > 1: | |
username = sys.argv[1] | |
playlist_name = sys.argv[2] | |
else: |
This fork of JamieMason's implementation changes the key
parameter to be an array of keys instead of just a single key. This makes it possible to group by multiple properties instead of just one.
const groupBy = keys => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = keys.map(key => obj[key]).join('-');
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="fakeurlbar" style="display: none; position: fixed; top: 0px; left: 0; height: 74.77037037037037px; width: 100vw; background-image: url('{% link assets/2019-04-27/bar_background.png %}'); background-size: 19px 74.77037037037037px;"> | |
<img src="{% link assets/2019-04-27/bar_left.png %}" style="float: left; width: 211.72222222222223px;"/> | |
<img src="{% link assets/2019-04-27/bar_right.png %}" style="float: right; width: 124.74444444444444px;"/> | |
</div> | |
<script> | |
let scrollJailEl = null; | |
const initialHeight = window.innerHeight; | |
const fakeUrlBarEl = document.getElementById("fakeurlbar"); | |
const fakeTopHeight = 1000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<ApplicationDbContext> | |
{ | |
public ApplicationDbContext CreateDbContext(string[] args) | |
{ | |
IConfigurationRoot configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile(@Directory.GetCurrentDirectory() + "/../MyCookingMaster.API/appsettings.json").Build(); | |
var builder = new DbContextOptionsBuilder<ApplicationDbContext>(); | |
var connectionString = configuration.GetConnectionString("DatabaseConnection"); | |
builder.UseSqlServer(connectionString); | |
return new ApplicationDbContext(builder.Options); | |
} |
Example of applying cell styles to an excel file created by dataTables buttons extension.
A Pen by Jaime Gaspar on CodePen.
NewerOlder