Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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 | |
from getpass import getpass | |
from hashlib import sha1 | |
password = getpass('Enter password: ') | |
repeat = getpass('Repeat password: ') | |
if (password != repeat): | |
print "Passwords do not match!" |
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 python3 | |
from getpass import getpass | |
from hashlib import sha1 | |
password = getpass('Enter password: ') | |
repeat = getpass('Repeat password: ') | |
if (password != repeat): | |
print("Passwords do not match!") |
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 ruby | |
require 'rubygems' | |
require 'highline/import' | |
require 'digest/sha1' | |
password = ask("Password: ") { |q| q.echo = false } | |
repeat = ask("Repeat: ") { |q| q.echo = false } | |
if password != repeat |
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 argparse | |
import urllib2 | |
import sys | |
import re | |
parser = argparse.ArgumentParser(description='Download Google Web-fonts') | |
parser.add_argument('--url', dest='url', help='URL from Google Web-fonts') |
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
(function($) { | |
$.fn.responsiveInput = function() { | |
var $this = this; | |
$(window).resize(function() { | |
resizeInput($this); | |
}); | |
var resizeInput = function($this) { | |
var def = 100; |
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
<?php | |
/* Alle feestdagen kunnen berekend worden, de berekende zijn allemaal | |
* afhankelijk van pasen. PHP heeft een functie easter_date(). | |
* Makkie dus. Hoe easter_date() zelf werkt kan je hier raadplegen: | |
* http://svn.php.net/viewvc/php/php-src/trunk/ext/calendar/easter.c?view=markup | |
*/ | |
$jaar = 2012; | |
// vaste dagen |
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
<?php | |
trait Feestdagen | |
{ | |
private function isFeestdag(\DateTime $date) | |
{ | |
$feestdagen = $this->getFeestdagen($date->format('Y')); | |
if (in_array($date, $feestdagen)) { | |
return true; | |
} |
- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
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
<?php | |
require './web_app.php'; | |
// sample resource | |
class MyObject { | |
public function methodName() { | |
echo "d!"; | |
} | |
} |
OlderNewer