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
<link rel="import" href="../paper-input/paper-input.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
</style> | |
<div horizontal center-justified layout> | |
<paper-input id="paper_input1"></paper-input> | |
<paper-input id="paper_input"></paper-input> |
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 abcdefghppp(base, width, callback){ | |
var i; | |
var cnt = 0; | |
var used1 = new Array(base); | |
var used2 = new Array(base); | |
var sp = new Array(width); | |
var table = new Array(base); | |
for(i=0; i<base; i++) table[i] = new Array(base); | |
var tableLen = new Array(base); |
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
'use strict'; | |
const SIZE = 6; | |
const BASE = SIZE - 1; | |
const HORI = 0; | |
const VERT = 1; | |
const SPACE = '.'; | |
const TARGET = '+'; |
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
#!/bin/bash | |
FILE=/tmp/list | |
cat > $FILE <<-END | |
address=/2mdn.net/0.0.0.0 | |
address=/360yield.com/0.0.0.0 | |
address=/adgrx.com/0.0.0.0 | |
address=/adnxs.com/0.0.0.0 | |
address=/ads.yahoo.com/0.0.0.0 |
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 mongoose = require('mongoose') | |
var hapi = require('hapi') | |
mongoose.connect('mongodb://localhost/test'); | |
var Something = mongoose.model('Something', mongoose.Schema({ | |
something: String | |
})); | |
var server = new hapi.Server() |
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/env python3 | |
# Problem: http://9gag.com/gag/a6Qq368 | |
def ex(*arg): | |
return [ i for i in range(10) if not i in arg ] | |
def c0p0(a,b,c): | |
arr = [] | |
for i in ex(a,b,c): | |
for j in ex(a,b,c,i): |
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
const digits = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
const digitsReverse = (function(){ | |
var arr = digits.split(''); | |
var table = {}; | |
for(var i=0; i<arr.length; i++) table[arr[i]] = i; | |
return table; | |
})(); | |
const dim = 6; | |
const modulo = 62; | |
const shift = [26, 13, 47, 40, 11, 19]; |
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
const digits = "0123456789abcdefghijklmnopqrstuvwxyz"; | |
const digitsReverse = (function(){ | |
var arr = digits.split(''); | |
var table = {}; | |
for(var i=0; i<arr.length; i++) table[arr[i]] = i; | |
return table; | |
})(); | |
const dim = 7; | |
const modulo = 36; | |
const shift = [11, 21, 21, 23, 4, 24, 1]; |
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/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
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 SHEET_NAME = "Sheet1"; | |
function doGet(e) { | |
return handleResponse(e); | |
} | |
function doPost(e) { | |
return handleResponse(e); | |
} |
OlderNewer