You can find the complete source of this zPage here
You can embed a plethora of exciting content with the ::embed[URL]
directive.
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby | |
# SET YOUR_HOME TO THE ABSOLUTE PATH OF YOUR HOME DIRECTORY | |
# chmod +x install.rb | |
# ./install.rb | |
YOUR_HOME = '' | |
HOMEBREW_PREFIX = "#{YOUR_HOME}/usr/local" | |
HOMEBREW_CACHE = '/Library/Caches/Homebrew' | |
HOMEBREW_REPO = 'https://github.com/Homebrew/homebrew' |
You can find the complete source of this zPage here
You can embed a plethora of exciting content with the ::embed[URL]
directive.
# you have to have a django project to do it this way | |
# You can run this in a `./manage.py shell` | |
from django.contrib.auth.hashers import make_password | |
make_password("youreverysecuresuperpass") | |
# this will output something that looks like this: | |
# 'pbkdf2_sha256$260000$rgjSFB3xwsxkfcL1iE8wq6$bDtiRY0+gtE4ahFdfDeHwy0tzLb8McDRnppS8kD8QJs=' | |
# by default in Django 4.0 |
# | |
# templatetags/kwacros.py - Support for macros in Django templates | |
# | |
# Based on snippet by | |
# Author: Michal Ludvig <michal@logix.cz> | |
# http://www.logix.cz/michal | |
# | |
# modified for args and kwargs by Skylar Saveland http://skyl.org | |
# |
import random | |
import operator | |
from itertools import permutations | |
from bl.scheduler import clock, Tempo # , Meter | |
from bl.arp import RandomArp, OrderedArp, ScheduleArp # , ArpSwitcher | |
from bl.orchestra.midi import Player | |
from tutor.complib import drums_f |
import math | |
import random | |
class ClusterCenters(object): | |
""" | |
>> d = ((0,0,0), (0,1,0), (0, 2, 0), (1,2,0), (55, 55,50), (50,50,50), (-100,-100,-100), (-80,-80,-100), (60,60,50)) | |
>> cc = ClusterCenters(d, 3) | |
[[55, 55, 50], [0, 1, 0], [-90, -90, -100]] | |
>> cc = ClusterCenters(d, 2) |
import time | |
import sys | |
import tweepy | |
consumer_key = "" | |
consumer_secret = "" | |
key = "" | |
secret = "" | |
auth = tweepy.OAuthHandler(consumer_key, consumer_secret) |
@transaction.commit_on_success | |
def _action(action, o): | |
getattr(o,action)() | |
o.is_processing = False | |
o.save() | |
def _bulk_action(action, objs): | |
for o in objs: | |
_action(action,o) |
>>> import ctypes | |
>>> ctypes.CDLL('libSystem.dylib') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/.../lib/python2.7/ctypes/__init__.py", line 365, in __init__ | |
self._handle = _dlopen(self._name, mode) | |
OSError: dlopen(libSystem.dylib, 6): image not found |
> python | |
Python 2.7.3 (default, Dec 4 2013, 11:24:08) | |
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import billiard | |
>>> billiard.VERSION | |
(2, 7, 3, 31) | |
>>> ^D | |
> pip install -U billiard |