-
In a terminal navigate to your
userAppSupportDir
resp. the directory containing the sources of your quarks.-
On a mac:
{% highlight bash %} $ cd ~/Library/Application\Support/SuperCollider/quarks {% endhighlight %}
-
On Linux:
-
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 fabric.api import local, run | |
from pyquery import PyQuery as pq | |
BASE_URL = "http://hackermonthly.com/" | |
HACKER_URL = "http://hackermonthly.com/issues.html" | |
d = pq(url=HACKER_URL) | |
issue_list = d("#issues li a") | |
def get_issue(inex, node): | |
d = pq(node) |
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 requests | |
from lxml import html | |
from datetime import datetime, timedelta | |
# get news in last X days | |
DAY = 3 | |
# url of the news page |
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
$('body').append('<div id="tylerdurden"></div>'); | |
$('#tylerdurden').click(function(e){ | |
DBR.act($(this).attr('action')); | |
}); |
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 scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import HtmlXPathSelector | |
from dmovie.items import MovieItem | |
import re | |
class MovieSpider(CrawlSpider): | |
name = 'douban_movie' | |
allowed_domains = ["http://movie.example.com/"] | |
start_urls = ['http://movie.douban.com/'] |
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 urlparse | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import HtmlXPathSelector | |
from isbullshit.items import IsBullshitItem | |
class IsBullshitSpider(CrawlSpider): | |
""" General configuration of the Crawl Spider """ |
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 sentenceAnagrams(sentence: Sentence): List[Sentence] = { | |
def sen_iter(occur: Occurrences): List[Sentence] = { | |
if (occur == List()) | |
List(Nil) | |
else for { | |
word_occur <- combinations(occur).filter(_ != List()) | |
word <- dictionaryByOccurrences(word_occur) | |
rest <- sen_iter(subtract(occur, word_occur)) | |
} yield word :: rest | |
} |
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
[sean@xdlinux rubygems]$ sudo pacman -S zsh | |
Password: | |
resolving dependencies... | |
looking for inter-conflicts... | |
Targets (1): zsh-4.3.17-2 | |
Total Download Size: 1.53 MiB | |
Total Installed Size: 6.72 MiB |
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
2013-10-16 09:30:24 *Tunnelblick: OS X 10.8.5; Tunnelblick 3.4beta10 (build 3614) | |
2013-10-16 09:30:25 *Tunnelblick: Attempting connection with douban using shadow copy; Set nameserver = 9; not monitoring connection | |
2013-10-16 09:30:25 *Tunnelblick: openvpnstart start douban.tblk 1337 9 0 1 1 305 -ptADGNWradsgnw 2.2.1 | |
2013-10-16 09:30:25 *Tunnelblick: openvpnstart log: | |
Loading tun.kext | |
OpenVPN started successfully. Command used to start OpenVPN (one argument per displayed line): | |
/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.2.1/openvpn | |
--cd |
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
compile done | |
resolve: Host not found (authoritative) | |
ERROR: Non Boolean in test. | |
RECEIVER: | |
class NetAddr (0x116231fc0) { | |
instance variables [19] | |
name : Symbol 'NetAddr' | |
nextclass : instance of Meta_Nil (0x1109c84c0, size=19, set=5) | |
superclass : Symbol 'Object' |
OlderNewer