Skip to content

Instantly share code, notes, and snippets.

@matijagrcic
matijagrcic / VSCode_AspNETCore.txt
Last active January 13, 2019 23:03
dotnet new - Creates a new project, configuration file, or solution based on the specified template.
> dotnet dev-certs https --trust
> https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new?tabs=netcore21
> dotnet run
Templates Short Name Language Tags
----------------------------------------------------------------------------------------------------------------------------
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
@matijagrcic
matijagrcic / download_chrome41.js
Created October 29, 2018 16:58 — forked from ebidel/download_chrome41.js
For when you need to test your site in Google Search (Chrome 41).
/**
* Copyright 2018 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#upgrade
pip install --upgrade youtube-dl
youtube-dl -v -x --audio-format mp3 --audio-quality 320k https://www.youtube.com/watch?v=xKjyXiuvuHE
#can use -x as it's a shortcut for --extract-audio
youtube-dl --extract-audio --audio-format mp3 #url_to_playlist
#from txt file
youtube-dl -v -x --audio-format mp3 --audio-quality 320k --batch-file sets.txt
CVIJA - BRZINA (OFFICIAL VIDEO)
Kao Kokain - Elitni Odredi (OFFICIAL HD VIDEO)
G-Unit - Stunt 101
Ona nam daje
Jalopnik Vs. Kotaku in Mario Kart 8
Preetha Subbarayalu: Inside Reliable Collections
Mory Kante Yeke Yeke
The Black Eyed Peas - Shut Up
Eminem - Without Me
Cypress Hill - Tequila Sunrise

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: Array: T[] 🔒 ES3
Bookshelf Coffee House - https://goo.gl/maps/YvMVFMa9Whp
Filter - https://goo.gl/maps/6rEkaY7iQLP2
Alchemy Cork - https://goo.gl/maps/NrLkiUqQYxG2
Langford Row Coffee & Music Store (same owner as Alchemy Cork) - https://goo.gl/maps/HRvcmt2Ajgv
Gulpd (inside arts center) - https://goo.gl/maps/Fk5SsXq45yu
@matijagrcic
matijagrcic / coverage.js
Created February 28, 2018 07:43 — forked from ebidel/coverage.js
CSS/JS code coverage during lifecycle of page load
/**
* @author ebidel@ (Eric Bidelman)
* License Apache-2.0
*
* Shows how to use Puppeeteer's code coverage API to measure CSS/JS coverage across
* different points of time during loading. Great for determining if a lazy loading strategy
* is paying off or working correctly.
*
* Install:
* npm i puppeteer chalk cli-table
@matijagrcic
matijagrcic / server-timing-demo.js
Created February 15, 2018 07:47 — forked from paulirish/server-timing-demo.js
Demo of server timing values. visualized in chrome devtools
// see for screenshot:
// https://twitter.com/paul_irish/status/829090506084749312
const http = require('http');
function requestHandler(request, response) {
const headers = {
'Server-Timing': `
sql-1;desc="MySQL lookup Server";dur=100,
sql-2;dur=900;desc="MySQL shard Server #1",
{
"total": 87,
"pages": [{
"page": 1,
"videos": [{
"name": "Keynote: What is programming anyway? - Felienne",
"href": "https://vimeo.com/channels/1344849/254635626",
"duration": "01:06:10",
"description": "All kids should learn to code! Yes, I think we programmers all agree with Bill Gates and Sheryl Sandberg that kids should learn programming. But what is programming? What should kids know? What should…"
}, {