Skip to content

Instantly share code, notes, and snippets.

render (): React$Element<Object> {
let {user, kid, goal, balance} = this.props
let currentLevel = this.getCurrentLevel()
if (!goal) return this.renderEmptyState()
let pipes = this.getPipes(goal, kid, user, currentLevel, this.getLevelToClimbTo())
return <View style={{flex: 1}}>
<ColorFix color={colors.stratos} />
<ColorFix isBottom color={colors.fiftyShades} />
<Animated.ScrollView ref={this.setScrollRef} onScroll={this.onScroll} scrollEventThrottle={16} contentContainerStyle={styles.scrollContainer} style={styles.container}>
<LinearGradient style={styles.backgroundImageView} colors={[colors.stratos, colors.stratos, colors.kingfisherDaisy]}>
@equinoxel
equinoxel / main.scss
Created January 23, 2017 10:37
webpack 2 config capable of loading font-awesome fonts
@import "~normalize-scss/sass/normalize";
$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome.scss";
@import "bourbon";
package me.play.util;
import static java.lang.System.getProperty;
import static java.lang.System.setProperty;
import static java.util.logging.Level.SEVERE;
import static java.util.logging.Logger.getLogger;
import java.net.Authenticator;
import java.net.InetAddress;
import java.net.PasswordAuthentication;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json,urllib,datetime
def main():
raw = urllib.urlopen("http://ec.europa.eu/research/participants/portal/data/call/h2020/calls.json").read()
data=json.loads(raw)
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import zipfile
@equinoxel
equinoxel / .gitignore
Created January 30, 2016 01:29 — forked from keyboardsurfer/.gitignore
Android gitignore
# Copyright: Benjamin Weiss (keyboardsurfer) https://github.com/keyboardsurfer
# Under CC-BY-SA V3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode)
# built application files
*.apk
*.ap_
*.jar
!gradle/wrapper/gradle-wrapper.jar
# lint folder
.PHONY: depend clean
all: $(MAIN)
@echo Polymorph binary has been compiled
$(MAIN): $(OBJS)
$(CXX) $(CXXFALGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS)
# this is a suffix replacement rule for building .o's from .c's
# it uses automatic variables $<: the name of the prerequisite of
@equinoxel
equinoxel / main.py
Last active December 12, 2015 05:38
Tweaked wkhtmltopdf main.py file
#!/usr/bin/env python
import os
import optparse
class WKhtmlToPdf(object):
"""
Convert an html page via its URL into a pdf.
"""
def __init__(self, *args, **kwargs):
@equinoxel
equinoxel / timecalc.py
Created December 6, 2012 14:18
A script to calculate total time from a set of (start. end) tuples
buf = """
15/10/1997 15/10/2001
03/03/1997 30/06/2000
01/10/1996 30/06/1997
15/11/2011 14/10/2012
15/11/2008 14/11/2011
10/10/2007 10/11/2008
01/12/2005 01/10/2007
01/11/2001 01/11/2005
"""