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
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]}> |
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 "~normalize-scss/sass/normalize"; | |
$fa-font-path: "~font-awesome/fonts"; | |
@import "~font-awesome/scss/font-awesome.scss"; | |
@import "bourbon"; |
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
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; |
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 | |
# -*- 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) |
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
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 | |
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
# 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 |
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
.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 |
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 | |
import os | |
import optparse | |
class WKhtmlToPdf(object): | |
""" | |
Convert an html page via its URL into a pdf. | |
""" | |
def __init__(self, *args, **kwargs): |
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
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 | |
""" |