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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell] | |
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe" | |
@="Obre powershell" | |
[HKEY_CLASSES_ROOT\Directory\shell\powershell\command] | |
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -NoLogo -Command Set-Location -LiteralPath '%L'" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell] |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here] | |
"icon"="C:\\Windows\\system32\\cmd.exe,0" | |
[HKEY_CLASSES_ROOT\Directory\shell\Command Prompt Here\command] | |
@="cmd.exe /s /k pushd \"%V\"" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\Command Prompt Here] | |
"icon"="C:\\Windows\\system32\\cmd.exe,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
import ImageCache from './image-cache.js' | |
var imageCache = new ImageCache(); | |
var img = $(el).find('img'); | |
imageCache.loadImage(img[0], img.attr('src')); |
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
<html> | |
<body> | |
<pre id="display"></pre> | |
<script src="//cdn.jsdelivr.net/pouchdb/3.1/pouchdb.js"></script> | |
<script> | |
(function () { | |
'use strict'; | |
var display = document.getElementById('display'); | |
display.innerHTML = (display.innerHTML || ''); |
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
var count = function(txt, rank) { | |
var wordFreq = {}; | |
var words = txt.split(' '); | |
for (i = 0; i < words.length; i++) { | |
var current = words[i]; | |
var last = current.length - 1; | |
current = noPunc(current); | |
if (notInArray(current, particle) && !wordFreq[current]) { | |
wordFreq[current] = 1; | |
} |
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 someReallyUsefullFunction = async (text) => { | |
// Break in parts small enough to be handle by Polly API | |
const parts = divideTextEnoughToBeHandleByPolly(text) | |
// Concat AudioStreams in one Buffer | |
const audioStreams = audios.map(a => a.AudioStream) | |
const buffer = Buffer.concat(audioStreams, audioStreams.reduce((len, a) => len + a.length, 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
// <img id="myimage" src="http://placecage/1280/720"> | |
var image = document.getElementById('myimage'); | |
var mc = new Hammer.Manager(image); | |
var pinch = new Hammer.Pinch(); | |
var pan = new Hammer.Pan(); | |
pinch.recognizeWith(pan); |
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
/* | |
Gmail/Google Reader Sidebar Scroll Shadows | |
------------------------------------------- | |
Neat effect that mimics the scroll shadows that appear in the GOogle sitde bar and visually cues users to scroll up or down depending on their position. | |
Credit goes to Lea Verou for this awesome find. | |
Source: | |
Lea's Talk: http://www.youtube.com/watch?v=3ikye7Qc7Ak | |
Code Source: http://lea.verou.me/more-css-secrets/#slide9 | |
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
var path = require('path'); | |
var url = require('url'); | |
var http = require('http'); | |
var fs = require('fs'); | |
var write_file; | |
//what global variable do we have? | |
var complete = false; | |
var content_length = 0; | |
var downloaded_bytes = 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
var Event = function() { | |
var self = this; | |
self.queue = {}; | |
self.fired = []; | |
return { | |
fire: function(event) { |
OlderNewer