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
Uncensorme.xyz revolves around the problem of censorship, freedom of speech, and freedom of information. | |
Censorship has followed the free expressions of men and women like a shadow throughout history. | |
There have been book burnings by fascist regimes, religions prohibiting texts, and artists and activists sentenced to death. | |
These acts of censorship may seem like they are far away, but are actually closer than you might think. | |
The internet, unfortunately, is not quite open, and for a platform that is often described as the last bastion of free speech, there is an awful lot of censorship. |
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 | |
# cf http://mclear.co.uk/2012/10/16/etherpad-viewing-a-saved-revision/ | |
i=1 | |
echo "get revisions for url: $1" | |
while [ $? = 0 ] | |
do | |
curl "$1/$i/export/txt" > "`printf %04d $i`.dot" | |
i=$[$i+1] | |
done |
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
Visual Culture a Tool for Design Collaboration | |
Visualisez l'évolution de vos projets de design, facilitez vos collaborations, exploitez la puissance de Git ! | |
Suivre le projetAppli / GraphiqueBrussels, Belgium | |
Large_osp-1412333294 4 | |
Tweet | |
Embed | |
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
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
import urllib | |
import urllib2 | |
""" | |
Delete all the pads on an Etherpad instance that have 0 revisions (they often appear when you type the wrong url by hand) | |
""" |
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 | |
# Creates mark-up for the images on http://i.liketightpants.net/and/ | |
import sys | |
from PIL import Image | |
picture = sys.argv[1] | |
try: | |
picture = int(picture) |
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
for f1 in *.*; do | |
sips -s format jpeg --resampleWidth 1024 "$f1" --out `echo $f1 | sed 's/\(.*\)\..*/\1/'`.jpg >/dev/null | |
# echo `echo $f1 | sed 's/\(.*\)\..*/\1/'`.jpg | |
done | |
echo "stop" |
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
/** | |
* Usage: phantomjs scrape.js URL [selector] | |
* selector defaults to `#content` | |
*/ | |
var page = require('webpage').create(), | |
system = require('system'); | |
if (system.args.length < 2 || system.args.length > 3) { |
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
import vobject | |
from django.contrib.auth.models import User | |
def vcard(user): | |
j = vobject.vCard() | |
o = j.add('fn') | |
o.value = user.get_full_name() | |
o = j.add('n') | |
o.value = vobject.vcard.Name( family=user.last_name, given=user.first_name ) | |
j.add('email') |
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
/* So I logged, opened up the console, and this worked. | |
* | |
* I did add jQuery with the jQuerify extension though | |
* Underscore is already loaded. | |
* | |
*/ | |
var contacts; | |
$.ajax({ | |
url: '/sapi/contact?action=get', |
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
// Pattern 1 | |
// Provide a function that returns an object | |
(function( Popcorn ) { | |
Popcorn.plugin( "pluginName" , function( options ) { | |
// do stuff | |
// this refers to the popcorn object | |
// You are required to return an object | |
// with a start and end property | |
return { |
NewerOlder