define (require, exports, module) ->
'use strict'
Q = window.Q = Quintus()
.include("Sprites, Scenes, Input, 2D, Anim, Touch, UI")
.setup( maximize: true )
.controls().touch()
SPRITE_BOX = 1
Q.gravityY = 2000
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/bash | |
_dir=/data/bitcoind | |
function install/packages() { | |
yum -y groupinstall "Development Tools" | |
yum -y install qt-devel protobuff-devel qrencode-devel git | |
} | |
function install/dirs() { |
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/bash | |
gbn=$(basename ${BASH_SOURCE}) | |
gdn=$(dirname ${BASH_SOURCE}) | |
rc="${HOME}/.${gbn}rc.$$" | |
function help/jobmon() { | |
cat <<EOF | |
Usage: smonitor -j JOBID |
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/bash | |
config=/opt/nce/sbin/ldap/config | |
password=/opt/nce/sbin/ldap/password | |
if test -r ${config} ; then | |
source ${config} | |
else | |
echo "Not found: ${config}" | |
exit 1 |
define (require, exports, module) ->
View = require 'famous/core/View'
Surface = require 'famous/core/Surface'
Transform = require 'famous/core/Transform'
StateModifier = require 'famous/modifiers/StateModifier'
HeaderFooter = require 'famous/views/HeaderFooterLayout'
View.DEFAULT_OPTIONS=
headerSize: 44
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
scontrol -o show nodes | awk '{print $1,$4,$6,$7}' | sed s/[a-zA-Z]*=//g | awk '{if($2 >0) print $1, $2 "/" $3, $4}' |
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/bash | |
_user=${1:-$USER} | |
_home="/home/${_user}" | |
_dir=$(readlink ${_home} || echo ${_home}) | |
_stat=$(stat -c "%a %G %U %n" ${_dir}) | |
_mode=$(echo ${_stat} | awk '{print $1}') | |
_sgroup=$(echo ${_stat} | awk '{print $2}') | |
_suser=$(echo ${_stat} | awk '{print $3}') |
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
gstat -i manager -a -1 | grep ^cn | awk '{print $11}' | sed s/\,// | awk 'BEGIN{sum=0;c=1}{sum+=$0;++c}END{print sum/c}' |
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 tt = require('browserify-transform-tools/lib/transformTools.js'); | |
options = {}; | |
module.exports = tt.makeStringTransform("decsify",. | |
options, function(contents, transformOptions, done) { | |
done(null, contents.replace(/cs\!/g, "./")) }); |
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 | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="nodejs" |
NewerOlder