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
ffmpeg-i <input video> -r 8 <output gif> |
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
ffmpeg -i <input video> -filter:v "setpts=0.6*PTS" <output video> |
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
query = select(:author, :created_at) | |
.from( | |
where("created_at >= ?", Date.today - 6.months) | |
.order(created_at: :desc) | |
.limit(100) | |
).order(author: :asc) |
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
/** | |
* comments | |
* author | |
* comment_text | |
* created_at | |
**/ | |
SELECT author, created_at FROM | |
(SELECT * FROM comments WHERE (created_at >= NOW() - interval '6 month') | |
ORDER BY created_at DESC LIMIT 100) subquery | |
ORDER BY author ASC; |
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
# Syncronize files across directories, keeping the most up-to-date edits | |
lists = [ | |
'directory_1/list_of_terms.yaml', | |
'directory_2/list_of_terms.txt' | |
] | |
list_items = {} # Form: [item] = [time(integer), keep(boolean)] | |
# Generate full list of single_listed items (stores all possible terms) |
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
# Python Implementation of Hello Worms | |
string = bytearray("Hello, Worms!", 'UTF-8') | |
for i in range(int(len(string) / 2)): # Cast to int for Range | |
temp = string[i] | |
string[i] = string[len(string) - i - 1] # -1 or error | |
string[len(string) - i - 1] = temp # add -1 or error | |
print(string.decode('UTF-8')) |
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
# Python Implementation of Hello Worms | |
string = "Hello, Worms!" | |
for i in range(int(len(string) / 2)): # Cast to int for range | |
temp = string[i] | |
string[i] = string[len(string) - i] | |
string[len(string) - i] = temp | |
print(string) |
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
# Python Implementation of Hello Worms | |
string = bytearray("Hello, Worms!", 'UTF-8') | |
for i in range(len(string) / 2): | |
temp = string[i] | |
string[i] = string[len(string) - i - 1] | |
string[len(string) - i - 1] = temp | |
print(string.decode('UTF-8')) |
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
#pm_view { | |
min-width:70%; | |
} | |
#conversation-list-columns{ | |
border-right:none; | |
background:#F7F6F6; | |
max-width:30%; | |
} | |
#conversation-view{ | |
min-width:68%; |
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
/* Conversation List Style */ | |
.conversation{ | |
background:#F8EFFB; | |
border-color: #FFFFFF; | |
border-width: thin; | |
} | |
.conversation.read{ | |
background:#DDDDDD; | |
border-color:#DDDDDD; | |
border-width:none; |