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 bash | |
target="/storage/sdcard1/Music" | |
for dir in "$@"; | |
do | |
base=$(basename "$dir") | |
adb push -p "$dir" "$target/$base" | |
done |
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
#lang racket | |
(require xml) | |
;; | |
;; Helper functions to deal with multiple strings in an xexpr node | |
;; | |
(define (xe->string xe) | |
(string-append* (filter string? xe))) |

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
<?xml version="1.0" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="src" path="src"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
<classpathentry kind="lib" path="classes"/> | |
<classpathentry kind="lib" path="lib/clojure-1.3.0.jar"/> | |
<classpathentry kind="output" path="bin"/> | |
</classpath> |
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
zombie = require 'zombie' | |
browser = new zombie.Browser debug: true, runScripts: false | |
URL = 'http://ubuntuforums.org/forumdisplay.php?f=331' | |
browser.visit URL, (err, browser, status) -> | |
if err | |
console.log "OMG! #{err}" | |
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
// (c) 2011 Michael Aufreiter | |
// Data.js is freely distributable under the MIT license. | |
// Portions of Data.js are inspired or borrowed from Underscore.js, | |
// Backbone.js and Google's Visualization API. | |
// For all details and documentation: | |
// http://substance.io/#michael/data-js | |
(function(){ | |
// Initial Setup |
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
/* | |
* Fun with quad trees. | |
* http://en.wikipedia.org/wiki/Quadtree | |
*/ |
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 spider = require('spider'); | |
var s = spider(); |
NewerOlder