This file contains hidden or 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 requests | |
import time | |
from bs4 import BeautifulSoup | |
signin_url = "http://www.v2ex.com/signin" | |
award_url = "http://www.v2ex.com/mission/daily" | |
main_url = "http://www.v2ex.com" |
This file contains hidden or 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
[Names] | |
count=1 | |
name0=Solarized Dark | |
[Solarized Dark] | |
text(bold)=839496 | |
magenta(bold)=dd3682 | |
text=839496 | |
white(bold)=fdf6e3 | |
green=859900 | |
red(bold)=cb4b16 |
This file contains hidden or 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
public final class VolleyIdlingResource implements IdlingResource { | |
private static final String TAG = "VolleyIdlingResource"; | |
private final String resourceName; | |
// written from main thread, read from any thread. | |
private volatile ResourceCallback resourceCallback; | |
private Field mCurrentRequests; | |
private RequestQueue mVolleyRequestQueue; |
This file contains hidden or 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
koa.use((ctx, next) => new Promise((resolve, reject) => { | |
ctx.body = "hello" | |
next().then(_ => { | |
resolve(); | |
}); | |
})); |
This file contains hidden or 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 bash | |
## @file install-comparisons.sh | |
## @author Jennifer Proust - proustibat@gmail.com | |
## @section DESCRIPTION Compare installations times between NPM 5/ NPM6 and YARN | |
set -o errexit || true | |
set -o errtrace | |
set -o nounset | |
set -o pipefail | |
#set -o xtrace |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout | |
android:id="@+id/main_content" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:fitsSystemWindows="true"> | |
This file contains hidden or 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
[Solarized Dark] | |
text(bold)=839496 | |
magenta(bold)=6c71c4 | |
text=839496 | |
white(bold)=fdf6e3 | |
green=859900 | |
red(bold)=cb4b16 | |
green(bold)=586e75 | |
black(bold)=073642 | |
red=dc322f |
This file contains hidden or 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 | |
# Python 2.7 and 2.6 install script for CentOS 7 | |
# Instructions mainly taken from tutorial by Daniel Eriksson | |
# https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/ | |
python27_version=2.7.15 | |
python36_version=3.6.6 | |
build_dir=python_build_temp | |
example_environment_dir=pythonEnv |
This file contains hidden or 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 <UIKit/UIKit.h> | |
@interface NumberPadDoneBtn : UIView | |
@end | |
@interface NumberPadButton : UIButton | |
@end |
This file contains hidden or 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 com.carloseduardo.model; | |
import com.carloseduardo.constants.KnownClasses; | |
import com.carloseduardo.exception.UnknownModelException; | |
import io.realm.RealmObject; | |
import io.realm.annotations.PrimaryKey; | |
import io.realm.annotations.Required; | |
/** |
OlderNewer