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
def query(): | |
submissions = [] | |
cursor = db.execute('SELECT * FROM links WHERE submitter_id = 62443 ORDER BY submitted_time ASC') | |
for link_tuple in cursor: | |
link = Link(*link_tuple) | |
submissions.append(link.id) | |
return submissions | |
print query() |
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
$(".results").bind("DOMSubtreeModified", function () { | |
sideBar.setOffset(); | |
}); |
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
from itertools import groupby | |
import os | |
from copy import deepcopy, copy | |
default_pos = [['-', '-', '-'], ['-', '-', '-'], ['-', '-', '-']] | |
class Board: | |
score = [] |
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
// adding this way adds literal text instead of DOM objects | |
$('table.adp-directions>tbody>tr')[step].after('<tr><td>TEXT!</td></tr>'); | |
// this way the rows are properly added | |
$('table.adp-directions>tbody>tr').after(function (index, html) { | |
if (index == step) { | |
return('<tr><td>TEXT!</td></tr>') | |
} | |
}); |
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 time | |
import requests | |
def query(query, collection): | |
URL = BASE_URL + '/' + collection + '/' + str(query['id']) | |
params = {'api_key': KEY} | |
if collection == 'tv' or collection == 'movie': | |
params = { | |
'api_key': KEY, | |
'language': 'en-US', |
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
{ | |
"results": [ | |
{ | |
"id": 10231, | |
"adult": false | |
}, | |
{ | |
"id": 57243, | |
"adult": false | |
}, |
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
“John Brennan, no single figure in American history has done more to discredit the intelligence community than this liar. Not only is he a liar, he’s a liar about being a liar.” Dan Bongino on @foxandfriends |
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
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' '+m:{A-Z}={a-z}' |
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
.ak-youtubemodal { | |
display: none; | |
height: 100%; | |
left: 0; | |
opacity: 0; | |
position: fixed; | |
top: 0; | |
transform: scale(1.15); | |
transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); | |
visibility: hidden; |
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
0 | |
0002 | |
003 | |
003h3 | |
005 | |
006 | |
00625rem | |
007 | |
008 | |
00bfa5 |
OlderNewer