Skip to content

Instantly share code, notes, and snippets.

View matehat's full-sized avatar

Mathieu D'Amours matehat

View GitHub Profile
@matehat
matehat / install.sh
Last active October 10, 2019 10:42
Small installation script for Aneth on Linux using runit
mkdir -p /etc/sv/aneth
echo "#!/bin/sh
exec /usr/local/bin/node /usr/local/bin/aneth start $HNAME -w" > /etc/sv/aneth/run
chmod +x /etc/sv/aneth/run
ln -nfs /etc/sv/aneth /etc/service
javascript 'scripts', {build: 'public/assets/javascripts', compress: true}, ->
@js 'app/assets/javascripts'
@bundles 'application'
stylesheets 'styles', {build: 'public/assets/stylesheets', compress: true}, ->
@css 'app/assets/stylesheets'
@bundles 'application'
Process: node [8092]
Path: /usr/local/Cellar/node/0.6.17/bin/node
Identifier: node
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: zsh [5502]
Date/Time: 2012-05-13 01:20:40.095 -0400
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Info Watching 42 files
Info assets/src/coffee/admin/inbox.coffee removed
Info assets/src/_cache/admin/inbox.js removed
Compiled assets/src/coffee/admin/content.coffee
Compiled assets/src/coffee/admin/content.coffee
Compiled assets/src/coffee/admin/base.coffee
Compiled assets/src/coffee/admin/base.coffee
Packaged assets/static/js/admin/shop.js
Packaged assets/static/js/admin/shop.js
Info Watching 61 files
@matehat
matehat / example.coffee
Last active September 30, 2015 17:58
Brewer.js project description
# In Brewfile
@stylesheets 'package_name', ->
# package body ...
@javascript 'other_package_name', ->
# package body ...
sudo CFLAGS=-O0 ./configure --prefix=/usr/local/erlang --enable-threads --enable-darwin-64bit
# make and install it
sudo make
sudo make install
# check it -- you should get the erlang shell
/usr/local/erlang/bin/erl
# now set the system wide path
// your code …
firstquery.on( 'end', function() {
var i,l;
for ( i = 0, l = data.geoms.length; i < l; i++ ) {
var geo = data.geoms[i];
client.query(
'insert into geometries ( name, layer_id, id, the_geom ) values ( $1, $2, $3, st_geometryfromtext( $4, 4326 )',
[ geo.name, layer_id, geo.id, geo.the_geom ]
).on('end', function() { console.log(client.queryQueue); });
clickBool = false
contentClick = ->
clickBool = not a
@animate
opacity: 0.0
marginTop: '-1000'
, 750, ->
element = if a then param is "virtualsystem" else "splash"
($ '##{element}').css
@matehat
matehat / setup-macosx-neurolab.sh
Created April 18, 2011 13:47 — forked from mja/homebrew_scipy.sh
Install every dependency to make NeuroLab work properly
echo "Installing core packages"
brew install gfortran
brew install python
brew install distribute
brew install mongodb
brew install hdf5
brew install ghostscript
brew install git
echo "Installing custom python libraries"
cache: (file) ->
@test file, =>
file.group: @name
@getPreparedContent file, =>
@resolveDependencies file, =>
@emit "resolvedDependencies", file
@backend.set file, (err) =>
sys.puts "Could not cache file $file.path" if err
@emit "cachedFile", file