This file contains hidden or 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 | |
set -e | |
SWAPNAME="swapfile" | |
SWAPFILE="/var/swapfile.crypt" | |
MEMORY=`cat /proc/meminfo | grep MemTotal | sel -c 2` | |
# Next power of 2 Megabytes above reported memory | |
MEGABYTES=$(perl -e "use POSIX; print 2**ceil(log(ceil($MEMORY/(2**10)))/log(2))") |
This file contains hidden or 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 System.IO | |
import System.Environment | |
import Text.Printf | |
import Data.Char | |
import Data.Set | |
import Data.List | |
import Text.Regex | |
import Text.Regex.Posix | |
printList :: [String] -> IO () |
This file contains hidden or 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 s = require('stream'); | |
var mys; | |
/* ======================================================== | |
Error callback first, throw | |
======================================================== */ | |
mys = Object.create(s.Readable.prototype); | |
mys._read = function(size) { | |
this.emit('error', new Error('test')); |
This file contains hidden or 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
// AMD header | |
if (typeof define !== 'function') { | |
var define = require('amdefine')(module); | |
} | |
define(function() { | |
'use strict'; | |
var priv = new WeakMap(); |
This file contains hidden or 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() { | |
'use strict'; | |
var received = false; | |
navigator.mozSetMessageHandler('alarm', function(ev) { | |
received = true; | |
console.log('message handled ->', JSON.stringify(ev)); | |
}); |
This file contains hidden or 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 | |
set -e | |
rm -r extracted | |
mkdir -p extracted | |
FOUND=`find profile/webapps/ -name "$1".gaiamobile.org | wc -l` | |
if [ "$FOUND" -gt 0 ]; then | |
APP="$1" | |
TARGET="profile/webapps/$1.gaiamobile.org/" | |
else |
This file contains hidden or 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
;;; | |
;;; Study Hall #1 | |
;;; example lisp code, by Eric O'Connor | |
;;; | |
;; define a package | |
(defpackage play | |
(:use cl)) | |
;; use the package |
This file contains hidden or 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
about 55 | |
think 33 | |
people 30 | |
would 24 | |
because 22 | |
right 19 | |
there 19 | |
awesome 17 | |
twitter 16 | |
really 16 |
This file contains hidden or 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
commit 1457958c78ae4db8c5babaeb01fce46d3ccf6c81 | |
Author: [email protected] | |
Date: Fri Aug 30 14:40:35 2013 -0400 | |
bug-873574 - scroll indicators for alarms list - performance improved | |
performance improvements for alarm list scroll indicators | |
* limit execution of `showHideScrollIndicators` to one per 150ms | |
* set threshold for showing and hiding indicators relative to alarm cell height |
This file contains hidden or 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
Aug 6 14:11:34 tara kernel: [ 400.708678] usb 3-2: new high-speed USB device number 16 using xhci_hcd | |
Aug 6 14:11:36 tara kernel: [ 402.494495] usb 3-2: Device not responding to set address. | |
Aug 6 14:11:36 tara kernel: [ 402.696774] usb 3-2: Device not responding to set address. | |
Aug 6 14:11:36 tara kernel: [ 402.900304] usb 3-2: device not accepting address 16, error -71 | |
Aug 6 14:11:36 tara kernel: [ 402.956223] hub 3-0:1.0: unable to enumerate USB device on port 2 | |
Aug 6 14:11:36 tara kernel: [ 403.195724] usb 3-2: new high-speed USB device number 18 using xhci_hcd | |
Aug 6 14:11:38 tara kernel: [ 405.003467] usb 3-2: Device not responding to set address. | |
Aug 6 14:11:39 tara kernel: [ 405.203733] usb 3-2: Device not responding to set address. | |
Aug 6 14:11:39 tara kernel: [ 405.407299] usb 3-2: device not accepting address 18, error -71 | |
Aug 6 14:11:39 tara kernel: [ 405.463236] hub 3-0:1.0: unable to enumerate USB device on port 2 |