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
write-host "checking..." | |
# check for apache | |
$apache = scoop which httpd | |
if($lastexitcode -ne 0) { 'Apache isn''t installed. run ''scoop install apache'''; return } | |
# check for php | |
$php = scoop which php | |
if($lastexitcode -ne 0) { 'PHP isn''t installed. run ''scoop install php'''; return } |
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 | |
GEOGRAPHY=0 | |
POSTGIS_SQL=postgis.sql | |
POSTGIS_SQL_PATH=/usr/local/Cellar/postgis/2.0.1/share/postgis | |
# For Ubuntu 8.x and 9.x releases. | |
if [ -d "/usr/share/postgresql-8.3-postgis" ] | |
then | |
POSTGIS_SQL_PATH=/usr/share/postgresql-8.3-postgis |
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 AnimatedRegion = Backbone.Marionette.Region.extend({ | |
show: function(view) { | |
var that = this; | |
this.ensureEl(); | |
this.close(); | |
view.on('close', function() { | |
that.$el.addClass('transparent'); }); | |
$.when(view.render()).then(function() { | |
that.open(view); |
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
;; Mumamo is making emacs >23.3 freak out: | |
(when (and (> emacs-major-version 23) | |
(> emacs-minor-version 3)) | |
(eval-after-load "bytecomp" | |
'(add-to-list 'byte-compile-not-obsolete-vars | |
'font-lock-beginning-of-syntax-function)) | |
) |
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
pip install -e git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib |
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
{ | |
"meta": { | |
"query": "search terms from the user" | |
}, | |
"objects": [ | |
{ | |
"nid": unique_id_for_this_item, | |
"type": 1, // 1 means this result is a show | |
"title": "Item title to show in the result view", | |
"mr_id": id of the item in mobilerider system, |
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
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch path/to/remove' --prune-empty -- --all |
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
(defun growl (title message) | |
(start-process "growl" " growl" "growlnotify" title "-a" "Emacs") | |
(process-send-string " growl" message) | |
(process-send-string " growl" "\n") | |
(process-send-eof " growl")) | |
(defun growl-compilation-result(buffer msg) | |
(if (string-match "^finished" msg) | |
(progn | |
(growl "Emacs compilation" "Compilation Successful :-)")) |
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.changeset').map(function(i, o) { s = String($(o).html()).match(/^\[(\d+)/); return s[1]; }); |
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
add_filter('posts_groupby', 'author_groupby'); | |
function author_groupby($groupby) | |
{ | |
global $wpdb; | |
$author_groupby = "{$wpdb->posts}.post_author"; | |
if(preg_match("/$author_groupby/", $groupby)) { | |
// grouping we need is already there |
NewerOlder