This file contains 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
.debug *:nth-child(4n+1) { | |
/* border: 1px solid blue !important; */ | |
background-color: rgb(86, 111, 149); | |
background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .5) 35px, rgba(255, 255, 255, .5) 70px); | |
outline: 1px rgb(57, 136, 255) solid; | |
outline-offset: -1px; | |
box-shadow: inset 0px 0px 22px -3px rgb(0, 26, 56); | |
} | |
.debug *:nth-child(4n+2) { |
This file contains 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
# find "extension.vsixmanifest" files | |
# $directory = "C:\Users\Martin\AppData\Local\Microsoft\VisualStudio\16.0_b91ee7f2\Extensions" | |
$directory = "$($env:LOCALAPPDATA)\Microsoft\VisualStudio\" | |
Write-Output "---BACKUP VISUAL STUDIO EXTENSIONS---" | |
Write-Output $directory | |
Write-Output "-------------------------------------" | |
get-childitem $directory -recurse | where {$_.extension -eq ".vsixmanifest"} | % { |
This file contains 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
const fs = require('fs'); | |
const strip = require('strip-comments'); | |
const puppeteer = require('puppeteer'); | |
var content = fs.readFileSync('keybindings.json', 'utf8'); | |
let removeComment = strip(content); | |
// Remove trailing commas in json: | |
let regex = /\,(?!\s*?[\{\[\"\'\w])/g; | |
let input = removeComment; // this is the initial string of data |
This file contains 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
<?php | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
**/ | |
return array( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', // WebDAV; RFC 2518 | |
200 => 'OK', |
This file contains 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
//Array reduce method | |
//reduce all the values in an array into a single result | |
// Uses a callback function just like map, forEach, filter, etc | |
// array.reduce(callback, initialValue) | |
// also has a second parameter which is an initialValue | |
let numbers = [12, 34, 56, 78, 91]; | |
//find the sum of all the numbers |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>LuxonJS The Modern MomentJS</title> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
#output{ | |
font-size: 2rem; | |
} |
This file contains 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
//Array custom sort() function | |
let log = console.log; | |
let movies = ['Star Wars', 'Star Trek', 'Jaws', 'Jurassic Park', 'Gross Pointe Blank', 'Eternal Sunshine of the Spotless Mind', 'Memento', 'Dog Soldiers', 'The Host', 'Gran Torino', 'Close Encounters of the Third Kind', 'Good Will Hunting', 'Layer Cake', 'Casino Royale', 'Almost Famous']; | |
let numbers = [40,16,67,345,22,23,142,63,59,283]; | |
let people = [ | |
{"id":123, "name":"Rick Deckard", "email":"[email protected]"}, | |
{"id":456, "name":"Roy Batty", "email":"[email protected]"}, |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>HTML inputmode attribute</title> | |
<style> | |
* { | |
padding: 0; |
This file contains 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
# Git aliases | |
alias gs="git status" | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gc="git commit" | |
alias gp="git push" | |
alias gpl="git pull" | |
alias gcm="git commit -m" | |
alias gl="git log" |
This file contains 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
{ | |
// Most Commonly Used | |
// Controls auto save of dirty files. Accepted values: 'off', 'afterDelay', 'onFocusChange' (editor loses focus), 'onWindowChange' (window loses focus). If set to 'afterDelay', you can configure the delay in 'files.autoSaveDelay'. | |
"files.autoSave": "off", | |
// Controls the font size in pixels. | |
"editor.fontSize": 14, | |
// Controls the font family. |