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 bash | |
# This file fairly close follows the recommendations in | |
# http://dancingpenguinsoflight.com/2009/02/python-and-vim-make-your-own-ide/ | |
# | |
#MIT/Expat License | |
#Copyright (C) 2010 by Peter Magnusson <peter[at]birchroad.net> | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights |
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 pymongo,sys | |
# | |
# Really lame script to learn the pymongo APIs | |
# mdfranz@gmail.com | |
# | |
logfile = "/var/log/squid/access.log" |
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/bash | |
# | |
# pylink.sh - Link a Python module to your site packages directory. | |
# | |
# See http://gist.github.com/21649 for updates. | |
# Check that an argument has been given. If not, print usage string. | |
if [ -z $1 ] | |
then | |
echo "Usage: `basename $0` <path_to_module> [<link_name>]" |
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
//Om du ändrar kortet så byt pinnarna | |
#define TRIGGER_PIN 5 | |
#define BUTTON1_PIN 4 | |
#define LED1_PIN 3 | |
#define LED2_PIN 2 //används inte just nu | |
#define CTRL_ENABLE1_PIN 6 //aktiverar motordrivaren | |
#define CTRL_INPUT1_PIN 7 //rikning1 för motor | |
#define CTRL_INPUT2_PIN 8 //rikting2 för motor |
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 __future__ import with_statement | |
from fabric.api import env | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
from fabric.contrib.project import upload_project | |
import ubuntu | |
import protobuf | |
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
/* | |
* (The MIT License) | |
* | |
* Copyright (c) 2011 Peter Magnusson <kmpm@birchroad.net> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* 'Software'), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to |
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
/// Original C++ implementation found at http://www.wilmott.com/messageview.cfm?catid=10&threadid=38771 | |
/// C# implementation found at http://weblogs.asp.net/esanchez/archive/2010/07/29/a-quick-and-dirty-implementation-of-excel-norminv-function-in-c.aspx | |
/* | |
* Compute the quantile function for the normal distribution. | |
* | |
* For small to moderate probabilities, algorithm referenced | |
* below is used to obtain an initial approximation which is | |
* polished with a final Newton step. | |
* | |
* For very large arguments, an algorithm of Wichura is used. |
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/bash | |
# Alloc's Minecraft Installer: | |
# feel free to change, update, improve, and release this script | |
# suggestions of feedback? reach me at alloc@dr.com | |
# This script, in no way, is directly distributing any protected minecraft files |
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/bash | |
#### wget -qO- http://goo.gl/kmNvU | sh | |
sudo aptitude install -y git | |
git clone git://gist.github.com/1501928.git gist-1501928 | |
cd gist-1501928 | |
git pull origin master | |
chmod +x *.sh |
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/bash | |
#****************************************************** | |
# A small script to help out install a Ubuntu Core | |
# Using a Live USB Ubuntu onto a HD | |
# | |
#****************************************************** | |
# Copyright (c) 2012 Peter Magnusson <peter@birchroad.net> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal in |
OlderNewer