- brew install qt --with-qt3support
- brew install graphviz
- sudo ln -s /usr/local/bin/dot /usr/bin/dot (?)
- svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdesdk/kcachegrind kcachegrind
- cd kcachegrind/qcachegrind
- qmake -spec 'macx-g++'
- make
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
// Remove Me | |
package main | |
// package random | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) |
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 { useState, useEffect } from 'react'; | |
import { useQuery } from 'react-query'; | |
// Pretend this is real & extracts server-side data from a hidden element with | |
// `data-*` attributes or similar. | |
import { pageContext } from '../utils/pageTools'; | |
// Again, pretend this is real & handles websocket comms. | |
import { | |
followUserActivity, |
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
[daniel@Europa:Desktop]: python riak_test.py | |
Inserting 0 | |
Inserting 1000 | |
Inserting 2000 | |
Inserting 3000 | |
Inserting 4000 | |
Inserting 5000 | |
Inserting 6000 | |
Inserting 7000 | |
Inserting 8000 |
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
brew install git | |
brew update | |
brew install readline | |
brew link readline | |
brew install python | |
brew install postgres | |
brew install tmux | |
brew install pip | |
brew install nginx | |
brew install libevent |
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
# Use the following to generate the necessary values. | |
# https://web-identity-federation-playground.s3.amazonaws.com/index.html | |
from boto.sts.connection import STSConnection | |
sts = STSConnection(anon=True) | |
# Substitute your own values from the Playground here. | |
arn = 'arn:aws:iam::XXXXXXX:role/WebIdFed_Amazon' | |
session_name = 'web-identity-federation' | |
token = 'Atza|XXXXXXX' |
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 Django, at the bottom of ``settings.py`` after all your other settings... | |
# Setup a BoundLogger for the project/apps to use... | |
import structlog | |
structlog.BoundLogger.configure( | |
context_class=structlog.ThreadLocalDict(dict), | |
) |
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/sh | |
# First, open up GitX | |
cd ~/Code/Python/django-haystack; gitx | |
tmux start-server | |
tmux new-session -d -s Haystack -n git | |
tmux new-window -tHaystack:1 -n test | |
tmux new-window -tHaystack:2 -n solr | |
tmux new-window -tHaystack:3 -n docs | |
tmux new-window -tHaystack:4 -n runserver |
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 operator | |
from haystack.query import SearchQuerySet, SQ | |
query = 'lil way' | |
sqs = SearchQuerySet().filter(reduce(operator.__and__, [SQ(name=word.strip()) for word in query.split(' ')])) |
NewerOlder