Symbol | HTML entity | Alt entity | Alt entity | Name |
---|---|---|---|---|
← | ← |
← |
← |
Left Arrow |
↑ | ↑ |
↑ |
↑ |
Up Arrow |
→ | → |
→ |
→ |
Right Arrow |
↓ | ↓ |
↓ |
↓ |
Down Arrow |
⇥ | ⇥ |
⇥ |
Tab | |
⇤ | ⇤ |
⇤ |
Back Tab | |
⇧ | ⇧ |
⇧ |
Shift | |
⇪ | ⇪ |
⇪ |
Caps Lock |
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
# One-line FizzBuzz in Python 3 (for my son, who asked me to show him it was possible) | |
print("\n".join(["Fizz"*(n%3 == 0) + "Buzz"*(n%5 == 0) or str(n) for n in range(1, 15+1)])) |
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
// enums3.rs | |
// Address all the TODOs to make the tests pass! | |
enum Message { | |
Move(Point), | |
Echo(String), | |
ChangeColor((u8,u8,u8)), | |
Quit, | |
} |
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
# 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 |
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
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) _ |
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
import re | |
punctexp = re.compile(r"[\!\"\#\$\%\&\\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^_\`\{\|\}\~]") | |
# Could also… | |
# import string | |
# re.compile('[{0}]'.format(re.escape(string.punctuation))) |
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 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 ]; |
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 dict = { | |
"Videogames" : "Things", | |
"Videogame" : "Thing", | |
"videogames" : "things", | |
"videogame" : "thing", | |
"Games" : "Things", | |
"Game" : "Thing", | |
"games" : "things", | |
"Games" : "Things", | |
"game" : "thing", |
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
/** | |
* 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 ) { |
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
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()); |
NewerOlder