layout | title | description | date |
---|---|---|---|
post |
derp1 |
double derp 1 |
2017-06-08 01:00:00 -0700 |
What had I expected? Four delights-snapped tributes (excesses) balance among four happy weeks as official as
layout | title | description | date |
---|---|---|---|
post |
derp1 |
double derp 1 |
2017-06-08 01:00:00 -0700 |
What had I expected? Four delights-snapped tributes (excesses) balance among four happy weeks as official as
#!/usr/bin/env python | |
# encoding: utf-8 | |
# install dependencies: sudo pip install validate_email pyDNS | |
# run it: python check.py robin hood gmail.com | |
# FYI, forwarding addresses (not catchalls) will report 'probably not valid'. that's all i've got right now. | |
import sys | |
from validate_email import validate_email |
def callerName(tel): | |
r = requests.get("https://lookups.twilio.com/v1/PhoneNumbers/"+tel, params={'Type': 'caller-name'}, auth=(sid, tok) ) | |
try: | |
# return a list of first, last, etc. names instead of 1 string | |
name = r.json()['caller_name']['caller_name'].split() | |
except Exception, e: | |
print "error getting caller name: "+ repr(e) | |
name=None | |
return name |
require "octokit" | |
require "json" | |
auth = "your-github-auth-token-goes-here" | |
Octokit.auto_paginate = true | |
c = Octokit::Client.new(:access_token => auth, :auto_paginate => true, :per_page =>1000) | |
### GET USER IDS FOR GEOS DEFINED in `locations` ### | |
data = [] |
# API key | |
akey = "2cd366345l3derpppp3948city566ae6c" | |
# email address associated with API key | |
auser = "foo@bar.baz" |
document.addEventListener('DOMContentLoaded', init, false) | |
var videoId = document.getElementById('video') | |
//var videoTitle = videoId.getAttribute('data-description') | |
var videoTitle = '宝宝身边有怪物' | |
function init () { | |
videoId.addEventListener('ended', videoEnd, false) | |
videoId.addEventListener('timeupdate', videoTimeUpdate, false) | |
videoId.addEventListener('play', videoPlay, false) |
0 5 17 ? * MON-FRI * python ~/path/instadraft.py >> ~/path/instadraft.log |
from Ziggeo import Ziggeo | |
ziggeo = Ziggeo("APP_TOKEN", "PRIVATE_KEY", "ENC_KEY") | |
print ziggeo.videos().delete("VIDEO_TOKEN") |
var request = require('request'); | |
var handlebars = require('handlebars'); | |
var project = 'distractedness'; | |
var url = 'http://devpost.com/software/' + project; | |
var api = 'https://iii3mdppm7.execute-api.us-east-1.amazonaws.com/prod/ProjectEndpoint/' + project; | |
var source = "<h2>{{title}}</h2><p>{{tagline}}</p><ul>{{#collaborators}}<li> <img src='{{avatar_url}}'> {{name}}</li>{{/collaborators}}</ul><ul>{{#built_with}}<li> #{{name}}</li>{{/built_with}}</ul>"; | |
request({url: api, json: true}, function(err, res, json) { | |
if (err) {throw err;} |
# (optional, default 320 240) size = size of the final image | |
size 1024 768 | |
nbounces 5 | |
# (optional, default 1) oversampling=1 no oversampling | |
oversampling 2 | |
# (optional, default 60) vision = size of the visual field | |
vision 60 |