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 | |
""" | |
This is the demo submission script of rabit for submitting jobs in local machine | |
""" | |
import argparse | |
import sys | |
import os | |
import subprocess | |
from threading import Thread | |
if os.name == 'nt': |
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
#!/bin/sh | |
# Install and compile Caffe on NVIDIA Jetson TK1 Development Kit | |
sudo add-apt-repository universe | |
sudo apt-get update | |
sudo apt-get install libprotobuf-dev protobuf-compiler gfortran \ | |
libboost-dev cmake libleveldb-dev libsnappy-dev \ | |
libboost-thread-dev libboost-system-dev \ | |
libboost-filesystem-dev \ | |
libatlas-base-dev libhdf5-serial-dev libgflags-dev \ | |
libgoogle-glog-dev liblmdb-dev -y |
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
// ==UserScript== | |
// @name MBTA Routes Renderer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://www.apartmentguide.com/map* | |
// @grant GM_xmlhttpRequest | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name LingoBingTTS | |
// @namespace http://xydrolase.me | |
// @version 0.1 | |
// @description Technical demo | |
// @match https://www.duolingo.com/* | |
// ==/UserScript== | |
// | |
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
#' Conditional Disabled Panel | |
#' | |
#' Creates a panel whose child input elements are disabled or not, | |
#' depending on the value of a Javascript expression. | |
#' | |
#' See ?shiny:::conditionalPanel for the Javascript expression usage. | |
#' | |
#' @param condition A JavaScript expression that will be evaluated repeatedly to | |
#' determine whether the child input elements should be disabled. | |
#' @param ... Elements to include in the panel. |
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
// ==UserScript== | |
// @name Duolingo-MiniDict | |
// @namespace http://github.com/killkeeper/duolingo-minidict | |
// @version 0.15 | |
// @description A built-in dictionary for Duolingo | |
// @updateURL https://raw.githubusercontent.com/killkeeper/duolingo-minidict/master/Duolingo-MiniDict.user.js | |
// @match *://www.duolingo.com/* | |
// @grant none | |
// ==/UserScript== | |
// |
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
inline kmer_pair_t *compute_delta(DOUBLE *ptr_ups_alpha, DOUBLE *norm_trans_p, | |
DOUBLE emit_dens, DOUBLE *delta, kmer_pair_t *kpair) | |
{ | |
#ifdef __AVX__ | |
/* yay! */ | |
#endif | |
#ifdef __SSE3__ | |
DOUBLE idx_argmax; | |
/* transition prob */ |
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 math | |
## SETTINGS BELOW ## | |
# how many radiation lines to generate | |
DEGREE_STEP = 10 | |
# this detemines if the glass pattern is sparse or dense | |
POINTS_ON_RADIATION = 20 | |
# how much would the radiation line be twisted |
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 | |
""" mixedcg.py | |
A PyMOL extension script for building mixed coarse grained model. | |
Author: Xin Yin <xinyin at iastate dot edu> | |
Biopython dependencies: | |
This script requires Biopython module for communicating with NCBI | |
server. You should first install Biopython onto your computer, and then |
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 json | |
import re | |
import urllib | |
import random | |
import itertools | |
import time | |
import sys | |
class GMapsBusQuery: |
NewerOlder