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
<style> | |
input { | |
margin-top: auto; | |
margin-bottom: auto; | |
background-color: transparent; | |
font-size: 150px; | |
width: 100%; | |
height: 100%; | |
text-align: center; | |
border: none; |
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 sys | |
import operator | |
import os | |
from random import shuffle | |
def main(args): | |
try: | |
if (len(args) == 2): | |
data = parse(args[1]) | |
rank(data) |
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
#include <stdio.h> | |
#include <string.h> | |
int main(void) | |
{ | |
char* code = "#include <stdio.h>\n#include <string.h>\n\nint main(void)\n{\n char* code = \"%s\";\n\n int len = strlen(code);\n int tokenStarted = 0;\n for (int i = 0; i < len; i++)\n {\n char c = code[i];\n\n if (tokenStarted == 1)\n {\n if (c == 's')\n {\n for (int j = 0; j < len; j++)\n {\n char d = code[j];\n\n if (d == '\\n')\n {\n putchar('\\\\');\n putchar('n');\n }\n else if (d == '\\\"')\n {\n putchar('\\\\');\n putchar('\\\"');\n }\n else if (d == '\\\\')\n {\n putchar('\\\\');\n putchar('\\\\');\n }\n else\n |
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
#!/usr/bin/python | |
# This script takes a video and remuxes it as an iOS-compatible video, re-encoding the audio if necessary. | |
# Note that the video WILL NOT be re-encoded. The script will fail if the video is not h264. | |
# | |
# Requires ffmpeg, ffprobe, and afconvert to be installed. | |
import re | |
import os | |
import sys |
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 __main__ | |
import os | |
_ansi_color_codes = { | |
"black":30, | |
"red":31, | |
"green":32, | |
"yellow":33, | |
"blue":34, | |
"magenta":35, |
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 java.io.IOException; | |
import java.io.FileOutputStream; | |
import java.io.File; | |
import java.io.FilenameFilter; | |
import java.util.Map; | |
import java.util.HashMap; | |
import com.itextpdf.text.Document; | |
import com.itextpdf.text.DocumentException; | |
import com.itextpdf.text.Image; | |
import com.itextpdf.text.Rectangle; |
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
table | |
{ | |
text-align:center; | |
border-collapse:collapse; | |
border:none; | |
font-size:0.85em; | |
display:inline-block; | |
line-height:1.4em; | |
} | |
.tablepadding |
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
(function() { | |
var appName = ""; | |
var jQueryVersion = "2.0.3"; | |
var jQueryUIVersion = "1.10.3"; | |
var jQueryUITheme = "redmond"; | |
function loadPrerequisites(callback) | |
{ | |
loadJQuery(function() { |
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
var PRINT = false; | |
var LOG = 1; | |
var SEL = ".pin"; | |
var COND = function($node) { | |
var ret = true; | |
ret = checkNum($node, ".pinPrice", ">=", 10); | |
if (!ret) { return 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
import java.io.IOException; | |
import java.io.FileOutputStream; | |
import java.io.File; | |
import java.io.FilenameFilter; | |
import java.util.Map; | |
import java.util.HashMap; | |
import com.itextpdf.text.Document; | |
import com.itextpdf.text.DocumentException; | |
import com.itextpdf.text.Image; | |
import com.itextpdf.text.Rectangle; |
OlderNewer