Skip to content

Instantly share code, notes, and snippets.

View huitseeker's full-sized avatar

François Garillot huitseeker

View GitHub Profile
import scala.reflect.macros.Context
import scala.language.experimental.macros
object Impls {
def impl[A](c: reflect.macros.Context) = c.universe.reify(())
}
object Macros {
def decl[A] = macro Impls.impl[A]
}
apache2 aptdaemon apt-file banshee brasero camorama caribou cinnamon cinnamon-screensaver colord colord command-not-found console-setup console-setup-linux cups cups-filters desktop-base docbook-xml docbook-xsl dpkg-dev emboss-lib engrampa eom fancontrol fancontrol file-roller fonts-cantarell fusion-icon gimp git gksu gnome-bluetooth gnome-colors-common gnome-control-center gnome-keyring gnome-media gnome-menus gnome-mplayer gnome-power-manager gnome-ppp gnome-settings-daemon gnome-system-monitor gnome-terminal gnome-themes gnome-wise-icon-theme gnupg-agent gnustep-base-common gnustep-base-runtime gnustep-common google-chrome-stable gparted graphviz gthumb gucharmap gufw hardinfo hplip jalview kate kate-data kdelibs5-data kde-runtime kde-runtime-data keyboard-configuration latex-beamer latex-xcolor libapache2-mod-dnssd libapache2-mod-perl2 libatril libatspi1.0-0 libbonoboui2-0 libboo2.0.9-cil libboost-system1.53.0 libbrasero-media3-1 libcaja-extension libclutter-gtk-0.10-0 libedata-book-1.2-13 libedataserveru
@huitseeker
huitseeker / PKGBUILD
Last active August 29, 2015 14:02
PKGBUILD for cudpp
# Contributor: Jan Stępień <jstepien@users.sourceforge.net>
pkgname=cudpp
pkgver=2.0
pkgrel=2
pkgdesc="The CUDA Data Parallel Primitives Library"
arch=('i686' 'x86_64')
url="http://code.google.com/p/cudpp"
license=('BSD')
depends=('cuda')
@huitseeker
huitseeker / test-30x-2.11.conf
Last active August 29, 2015 14:06
Scala-IDE #804 backport test for 2.10 and 2.11
##### Defined in the script #####
# CURRENT_DIR: execution dir
#####
##### local dirs #####
# Unlikely to need modification
#ZINC_DIR=${CURRENT_DIR}/zinc
#BUILD_DIR=${CURRENT_DIR}/target
#LOCAL_M2_REPO=${BUILD_DIR}/m2repo
#P2_CACHE_DIR=${BUILD_DIR}/p2cache
@huitseeker
huitseeker / log.txt
Created October 8, 2014 16:17
sbt-publish
>>>>> Check arguments
>>>>> Load config
>>>>> Setup logging
>>>>> Set flags
>>>>> Check prerequisites
>>>>> Check configuration
0
>>>>> Scala
----- org.scala-lang:scala-compiler:jar:2.11.3-SNAPSHOT found !
>>>>> Zinc
##### Defined in the script #####
# CURRENT_DIR: execution dir
#####
##### local dirs #####
# Unlikely to need modification
#ZINC_DIR=${CURRENT_DIR}/zinc
#BUILD_DIR=${CURRENT_DIR}/target
#LOCAL_M2_REPO=${BUILD_DIR}/m2repo
#P2_CACHE_DIR=${BUILD_DIR}/p2cache
@huitseeker
huitseeker / iRates.ipynb
Created December 31, 2014 19:23
A simple savings model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@huitseeker
huitseeker / st1.snb
Last active August 29, 2015 14:18 — forked from anonymous/st1.snb
{
"metadata" : {
"name" : "Spark_training-with-exercises",
"user_save_timestamp" : "1970-01-01T01:00:00.000Z",
"auto_save_timestamp" : "1970-01-01T01:00:00.000Z",
"language_info" : {
"name" : "scala",
"file_extension" : "scala",
"codemirror_mode" : "text/x-scala"
},
@huitseeker
huitseeker / bookmooch_clear_save.py
Created January 7, 2011 17:34
Empty your save-for-later list on bookmooch
#!/usr/bin/python
import re
import mechanize
myuser = ""
mypassword = ""
br = mechanize.Browser()
br.add_password("http://bookmooch.com",myuser, mypassword)
br.set_handle_robots(False)
@huitseeker
huitseeker / awspages.py
Created January 28, 2011 20:37
Amazon AWS search for books less than 150 pages in the operating systems category
import ecs
ecs.setLicenseKey('FILLLICENSEKEYHERE')
ecs.setSecretAccessKey('FILLSACCESSKEYHERE')
ecs.setLocale('us')
# O.S. books : node 3756
ecssearch = ecs.ItemSearch('', SearchIndex='Books',
ResponseGroup='Medium',BrowseNode='3756')
for i in range (1,100):
try:
if (int(ecssearch[i].NumberOfPages) < 150):