A Pen by Bennett Feely on CodePen.
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
// | |
// Levenshtein Distance Function for Google Sheets | |
// | |
// This function calculates de Levenshtein Distance (or Edit Distance) between two strings. | |
// I used the algorith and code from Wikipedia (https://en.wikipedia.org/wiki/Levenshtein_distance) | |
// as a reference and just adjusted the code to be used on Google Sheets. | |
// | |
// By: Manoel Lemos / [email protected] / http://manoellemos.com | |
// | |
// IMPORTANT: I added some code in the begining of the function to try to solve the issues |
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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
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
function! Strip(string) | |
return substitute(a:string, '^\s*\(.\{-}\)\s*\n\?$', '\1', '') | |
endfunction | |
function! TargetedTmuxCommand(command, target_pane) | |
return a:command . " -t " . a:target_pane | |
endfunction | |
function! SendTmuxCommand(command) |
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
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Copyright (c) 2013 [email protected]. | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2013-11-01 | |
# |
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
var e = document.createElement('script'); | |
e.setAttribute('src', 'https://nytimes.github.io/svg-crowbar/svg-crowbar.js'); | |
e.setAttribute('class', 'svg-crowbar'); | |
document.body.appendChild(e); |
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
// ==UserScript== | |
// @name Google Docs Shortcuts | |
// @include http*://docs.google.com/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var editor = document.getElementsByClassName("docs-texteventtarget-iframe")[0].contentWindow.document.querySelector("[contenteditable=\"true\"]"); |
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
/* | |
Default key bindings reference: | |
https://github.com/brookhong/Surfingkeys/blob/master/pages/default.js | |
#Inpsiring configurations | |
@mindgitrwx | |
https://github.com/mindgitrwx/gitconventions/blob/master/SurfingKeys-config-ko.js |
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
/* | |
Word count | |
*/ | |
function wcount(){ | |
ob_start(); | |
the_content(); | |
$content = ob_get_clean(); | |
return sizeof(explode(" ", $content)); | |
} |