The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
# Put this function to your .bashrc file. | |
# Usage: mv oldfilename | |
# If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
# Original mv is called when it's called with more than one argument. | |
# It's useful when you want to change just a few letters in a long name. | |
# | |
# Also see: | |
# - imv from renameutils | |
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var elements = document.body.getElementsByTagName('*'); | |
var items = []; | |
for (var i = 0; i < elements.length; i++) { | |
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
items.push(elements[i]); | |
} | |
} |
/* click and drag */ | |
$.fn.attachDragger = function () { | |
var attachment = false, lastPosition, position, difference; | |
$($(this).selector).on("mousedown mouseup mousemove", function (e) { | |
if (e.type == "mousedown") attachment = true, lastPosition = [e.clientX, e.clientY]; // jshint ignore:line | |
if (e.type == "mouseup") attachment = false; | |
if (e.type == "mousemove" && attachment == true) { | |
position = [e.clientX, e.clientY]; | |
difference = [(position[0] - lastPosition[0]), (position[1] - lastPosition[1])]; | |
$(this).scrollLeft($(this).scrollLeft() - difference[0]); |
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
{ | |
"plugins": ["react-hot-loader/babel"], | |
"ignore":[] | |
} |
This gist had a far larger impact than I imagined it would, and apparently people are still finding it, so a quick update:
(async main(){...}())
as a substitute for TLA. This completely eliminates the blocking problem (yay!) but it's less powerful, and harder to statically analyse (boo). In other words the lack of TLA is causing real problemsI'll leave the rest of this document unedited, for archaeological
# README | |
# 1. append following content to your ~/.bashrc file | |
# 2. apply your setup by enter shell command $ source ~./bashrc | |
### Git ### | |
git_icon() { | |
# NOTE: printing icon requires install font on http://fontawesome.io/ | |
# Choose one icon you like | |
#printf ' \uf126 ' # http://fontawesome.io/icon/code-fork/ | |
printf ' \uf09b ' # http://fontawesome.io/icon/github/ |
Trying to filter "out of office" emails from my inbox as I receive a lot of them when I send a blast. | |
I need help - what do your "out of office" emails say in your langauge? Comment Below! | |
## Gmail Filter | |
("Automatische Antwort" OR "Automatic reply" OR "AutoReply" OR "Out of Office" OR "Xesc Duran" OR "Abwesend" OR "Absence" OR "Absence du bureau" OR "À l'extérieur du bureau" OR "Réponse automatique" OR "Abwesenheitsnotiz" OR "Resposta automática" OR "Automaattinen vastaus" OR "Automatisch antwoord" OR "Afwezig" OR "Afwezigheid" OR "Niet aanwezig" OR "Poza zasięgiem" OR "Na wakacjach" OR "Poza biurem" OR "Automatyczna odpowiedź" OR "Z dala od komputera" OR "Αυτόματη απάντηση" OR "Εκτός γραφείου" OR "na dovolenké" OR "mimo kancelárie" OR "automatická odpověď" OR "Autosvar" OR "Fora do escritório" OR "na dovolené" OR "mimo kancelář") | |
## List | |
Automatische Antwort | |
Automatic reply |
var CryptoJS = CryptoJS || function(u, p) { | |
var d = {}, | |
l = d.lib = {}, | |
s = function() {}, | |
t = l.Base = { | |
extend: function(a) { | |
s.prototype = this; | |
var c = new s; | |
a && c.mixIn(a); | |
c.hasOwnProperty("init") || (c.init = function() { |