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 -e | |
# Script for installing Robomongo on Ubuntu. | |
# Copyright 2013 Binary Birch Tree | |
# http://www.binarybirchtree.com | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
""" | |
"oh hell!" card game logic | |
(aka contract whilst) | |
benjamin yates & dave renne, 2016 | |
renne house rules edition | |
""" | |
import sys | |
import random | |
from itertools import chain |
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
var jsdom = require("jsdom").jsdom; | |
var document = jsdom('<!doctype html>' + | |
'<html>' + | |
' <head>' + | |
' <meta charset="utf-8" />' + | |
'<title>image triangulation experiment</title>' + | |
'<link rel="stylesheet" href="styles/main.css" />' + | |
'</head>' + | |
'<body data-defaultimage="lincoln.jpg">' + | |
' <div class="nav-wrapper dark-bg">' + |
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
#sectionFeatures p img, #sectionDining p img { | |
width: 100%; | |
background-position: center; | |
background-size: cover; | |
} | |
#sectionDining p { | |
width: 306px; | |
height: 219px; |
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
""" | |
A perl Data.Dumper clone for Python | |
Author: [email protected] | |
2011-07-08 | |
""" | |
#!/bin/env python | |
import sys | |
from types import * |
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
def tester(insert=False, value={}): | |
if insert: | |
value['insert'] = True | |
print(value) | |
tester(insert=False) | |
tester(insert=True) | |
tester(insert=False) |
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
<span class="fa-stack fa-lg danger"> | |
<i class="fa fa-circle fa-stack-2x"></i> | |
<i class="fa fa-times fa-stack-1x fa-inverse"></i> | |
</span> |
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
PROJECT_NAME=XXXXXXXXXXXXXX | |
APP_NAME=api | |
BASE_DIR=$PROJECT_NAME/apps/$APP_NAME | |
mkdir -p $BASE_DIR | |
django-admin.py startapp $APP_NAME $BASE_DIR | |
mkdir -p $BASE_DIR/static/$APP_NAME/{css,js,img} | |
echo '' > $BASE_DIR/static/$APP_NAME/css/.gitkeep | |
echo '' > $BASE_DIR/static/$APP_NAME/js/.gitkeep | |
echo '' > $BASE_DIR/static/$APP_NAME/img/.gitkeep |
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
mount c c:\ -t cdrom | |
c:\ |
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(artoo) { | |
// Artoo Spider for http://www.immobiliare.it/info/ufficio-stampa | |
var scrape = { | |
iterator: '#wrapTestoStatiche', | |
data: { | |
'id': function() { | |
var id = artoo.$(this).find('.text-align_left a:last-child').attr('href'); | |
if (id) { | |
id = id.match(/ImmoNews\-(\d+)\.pdf$/); |