Symbol | HTML entity | Alt entity | Alt entity | Name |
---|---|---|---|---|
← | ← |
← |
← |
Left Arrow |
↑ | ↑ |
↑ |
↑ |
Up Arrow |
→ | → |
→ |
→ |
Right Arrow |
↓ | ↓ |
↓ |
↓ |
Down Arrow |
⇥ | ⇥ |
⇥ |
Tab | |
⇤ | ⇤ |
⇤ |
Back Tab | |
⇧ | ⇧ |
⇧ |
Shift | |
⇪ | ⇪ |
⇪ |
Caps Lock |
View gist:1603274
< | |
%3C | |
< | |
< | |
< | |
< | |
< | |
< | |
< | |
< |
View gist:4178397
View gist:b034a1913d768ba25f8947a85bda6d89
# Convert input.avi to out.mp4 | |
ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -b:a 192k -ac 2 out.mp4 | |
# Clip using ffmpeg | |
## no reencode | |
ffmpeg -i in.mp4 -ss [start] -t [duration] -c copy out.mp4 | |
ffmpeg -i in.mp4 -ss [start] -to [end] -c copy out.mp4 | |
## yes reencode | |
ffmpeg -ss [start] -i in.mp4 -t [duration] -c:v libx264 -c:a aac -strict experimental -b:a 128k out.mp4 |
View gist:7013194
import re | |
punctexp = re.compile(r"[\!\"\#\$\%\&\\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^_\`\{\|\}\~]") | |
# Could also… | |
# import string | |
# re.compile('[{0}]'.format(re.escape(string.punctuation))) |
View gist:5577646
var factorialRecursive = (function () { | |
// 0! = 1 just 'cause | |
var factorials = [ 1 ]; | |
return function fFactorial( n ) { | |
if ( n < 0 ) { | |
// negative n! not defined | |
return null; | |
} else if ( factorials[ n ] ) { | |
return factorials[ n ]; |
View gist:5511109
var dict = { | |
"Videogames" : "Things", | |
"Videogame" : "Thing", | |
"videogames" : "things", | |
"videogame" : "thing", | |
"Games" : "Things", | |
"Game" : "Thing", | |
"games" : "things", | |
"Games" : "Things", | |
"game" : "thing", |
View gist:4079640
/** | |
* Inspired by http://www.globalnerdy.com/2012/11/15/fizzbuzz-still-works/ | |
* | |
* Write a program that prints the numbers from 1 to 100, but | |
* for multiples of 3 print "Fizz" instead of the number and | |
* for the multiples of 5 print "Buzz." For numbers which are | |
* multiples of both 3 and 5 print "FizzBuzz." | |
*/ | |
for( var i = 1; i <= 100; i += 1 ) { |
View gist:2024505
javascript:(function(a){var b=parseInt(a.replace(/[\s|,]/g,""),10);alert(isNaN(b)?'"'+a+"\" doesn't look like a UNIX timestamp.":'"'+a+'" is\n'+new Date(b*(b>1e12?1:1e3)));})(window.getSelection().toString()); |
View gist:1040285
=(((A1/60)/60)/24)+DATE(1970,1,1)+(-5/24) |
View gist:e055bf2c18218ffdcee7
Option Explicit | |
Public Sub ChangeSpellCheckingLanguage() | |
Dim j As Integer, k As Integer, scount As Integer, fcount As Integer | |
scount = ActivePresentation.Slides.Count | |
For j = 1 To scount | |
fcount = ActivePresentation.Slides(j).Shapes.Count | |
For k = 1 To fcount | |
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then | |
' List of available LanguageID values at https://msdn.microsoft.com/en-us/library/aa432635.aspx | |
ActivePresentation.Slides(j).Shapes(k) _ |