THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| # -*- coding: utf-8 -*- | |
| """ | |
| This script will delete all of the tweets in the specified account. | |
| You may need to hit the "more" button on the bottom of your twitter profile | |
| page every now and then as the script runs, this is due to a bug in twitter. | |
| You will need to get a consumer key and consumer secret token to use this | |
| script, you can do so by registering a twitter application at https://dev.twitter.com/apps | |
| @requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1) |
| // Sample custom iterator. | |
| // By perfectly.insane (http://www.dreamincode.net/forums/index.php?showuser=76558) | |
| // From: http://www.dreamincode.net/forums/index.php?showtopic=58468 | |
| #include <iostream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <cassert> |
| # Mathieu Blondel, February 2012 | |
| # License: BSD 3 clause | |
| # Port to Python of examples in chapter 5 of | |
| # "Introductory Statistics with R" by Peter Dalgaard | |
| import numpy as np | |
| from scipy.stats import ttest_1samp, wilcoxon, ttest_ind, mannwhitneyu | |
| # daily intake of energy in kJ for 11 women |
| /** | |
| * Authored 2012 by Christer Swahn | |
| */ | |
| import nu.chervil.util.math.SpatialTuple; | |
| import nu.chervil.util.math.SpatialVector; | |
| import org.apache.log4j.Logger; | |
| /** |
| from libcpp.utility cimport pair | |
| cdef extern from "<tr1/unordered_map>" namespace "std::tr1": | |
| cdef cppclass unordered_map[T, U]: | |
| cppclass iterator: | |
| pair[T, U]& operator*() nogil | |
| iterator operator++() nogil | |
| iterator operator--() nogil | |
| bint operator==(iterator) nogil | |
| bint operator!=(iterator) nogil |
| import inspect | |
| # Callable class to wrap functions | |
| class F: | |
| def __init__(self, func, *args): | |
| self.func = func | |
| self.args = args | |
| # Currying |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/usr/bin/env python | |
| # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 textwidth=79 autoindent | |
| """ | |
| Python source code | |
| Last modified: 15 Feb 2014 - 13:38 | |
| Last author: lmwangi at gmail com | |
| Displays the available memory fragments | |
| by querying /proc/buddyinfo |
| #!/bin/bash | |
| green='\033[1;92m' | |
| yellow='\033[1;93m' | |
| red='\033[1;91m' | |
| blue='\033[1;31m' #"\033[1;96m" | |
| normal='\033[0m' | |
| comp=`hostname` |
| # Apache server configuration for ssotutorial. | |
| # This sets up a Flask application over SSL with CERN SSO authentication via | |
| # Shibboleth. | |
| # Load the SSL and Shibboleth modules | |
| LoadModule ssl_module modules/mod_ssl.so | |
| LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_22.so | |
| # Disable TRACE HTTP requests on CERN advice | |
| TraceEnable Off |