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
require("gWidgets") | |
require("cranvas") | |
tmp <- qdata(list('a'=c(1,2,3),'b'=c(4,5,6))) | |
gui <- function (data) { | |
obj <- gbutton("Hello world", container = gwindow(), handler = function(...){ data$b[2] <-9 }) | |
} |
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
library(gWidgets) | |
plots.gui <- function(toolkit, resize) { | |
options("guiToolkit"=toolkit) | |
window <- gwindow("plots.gui - gWidgets") | |
wgroup <- ggroup(horizontal=FALSE, cont=window) | |
pgroup <- gpanedgroup(container=wgroup) | |
add(pgroup, ggraphics()); ggmain <- dev.cur() |
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(){geo = {}; | |
// This geographic projection library is | |
// derived from D3 library by Mike Bostock | |
// https://github.com/mbostock/d3/ | |
// which is licensed under a BSD license. | |
// mercator with custom default scaling to match world.svg.js | |
geo.mercator = function() { | |
var scale = 1000, |
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
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0e79", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" | |
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev" |
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 | |
# simple service checker, starter, process tree killer | |
# usage: | |
# init.sh <script_path> [start|stop|status|restart] | |
SCRIPT=$1 | |
ACTION=$2 |
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
/* | |
Placeholder for custom user CSS | |
mainly to be overridden in profile/static/custom/custom.css | |
This will always be an empty file in IPython | |
*/ | |
/* set toolbar to hide by default */ | |
.notebook_app #maintoolbar { |
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 | |
## Pass all files in the PATH to dmenu and execute on success (with sorting by usage frequency) | |
tmp_bin=$(tempfile) | |
echo $PATH | tr ':' '\n' | xargs ls -1 | grep -Ev '^(/|$)' | sort -u > $tmp_bin | |
cat ~/.dme_history >> $tmp_bin | |
tmp_count=$(tempfile) | |
cat $tmp_bin | sort | uniq -c | sort -sb -k 1,1rn -k 2,2f > $tmp_count | |
run=$(cat $tmp_count | awk '{print $2}' | dmenu -b -i) && (echo $run >> ~/.dme_history ; $run) | |
rm $tmp_bin | |
rm $tmp_count |
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 | |
## Found this somewhere.. not my own work | |
if [[ -z "$1" ]]; then | |
echo "Syntax: $0 debfile" | |
exit 1 | |
fi | |
DEBFILE="$1" | |
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 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
#!/bin/bash | |
screen -d -m -s /path/to/my.app |
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
DELETE /applications/:client_id/tokens | |
DELETE /applications/:client_id/tokens/:access_token | |
GET /applications/:client_id/tokens/:access_token | |
POST /applications/:client_id/tokens/:access_token | |
GET /authorizations | |
POST /authorizations | |
PUT /authorizations/clients/:client_id | |
DELETE /authorizations/:id | |
GET /authorizations/:id | |
PATCH /authorizations/:id |
OlderNewer