I hereby claim:
- I am ryanmcgrath on github.
- I am ryanmcgrath (https://keybase.io/ryanmcgrath) on keybase.
- I have a public key ASBoiGzjRfuni2cjo3ZESQ0S9NqFGkb9ork8wK-_fciOJgo
To claim this, I am signing this object:
{ | |
"window": { | |
"backgroundColor": {"r": 35, "g": 108, "b": 218}, | |
"defaultWidth": 800, | |
"defaultHeight": 600 | |
}, | |
"root": { | |
"backgroundColor": {"r": 35, "g": 108, "b": 218} | |
}, |
I hereby claim:
To claim this, I am signing this object:
try: | |
# This module is only available when running under uwsgi | |
# in production. We try to import it, but if it fails we're | |
# running in development and should just pass a decorator that'll | |
# run it back immediately. | |
from uwsgidecorators import spool | |
except: | |
def spool(fn): | |
def _spool(**kwargs): | |
return fn(kwargs) |
import React from 'react'; | |
import Video from './Video'; | |
class MyGenericApp extends React.Component { | |
render() { | |
return <div> | |
<Video src="my_video_url" poster="my_poster_url" /> | |
</div>; | |
} | |
} |
import React from 'react'; | |
import icons from './icons'; | |
// This will inject our packaged SVG into the document, if it belongs there | |
const supportsSVGNatively = ( | |
!!document.createElementNS && | |
!!document.createElementNS('http://www.w3.org/2000/svg', "svg").createSVGRect | |
); | |
if(supportsSVGNatively) { |
;(function() { | |
/** | |
* This is in no way a proper shim, but it'll work fine here. | |
*/ | |
var filter = function(data, fn) { | |
var results = [], val, l = data.length, i = 0; | |
for(; i < l; i++) { | |
val = data[i]; | |
if(fn.call(val, i)) results.push(val); | |
} |
- (BOOL)application:(UIApplication *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.backgroundColor = [UIColor whiteColor]; | |
UIViewController *rootViewController = [[MyUIViewControllerSubclass alloc] init]; | |
UINavigationController *navController = [[UINavigationController alloc] | |
initWithRootViewController:rootViewController]; | |
<script type="text/javascript"> | |
/** | |
* Variables we'll need. The mode (adding, subtracting, etc), | |
* the two numbers, and a pointer to the number we're setting up | |
* at any point in time. | |
*/ | |
var mode = ''; | |
var number1; | |
var number2; | |
var currentNumber = number1; |
from django.core.management import setup_environ | |
from django.contrib.localflavor.us.us_states import STATE_CHOICES | |
from pyquery import PyQuery as pq | |
import settings, time | |
setup_environ(settings) | |
from myproject.writers.models import Location |
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
import urllib2 # Quora no like requests requests. ;_; | |
from pyquery import PyQuery as pq | |
from pprint import pprint | |
class Puora(object): | |
def __init__(self, username): | |
self.answers_url = 'http://www.quora.com/%s/answers' % username |