Skip to content

Instantly share code, notes, and snippets.

View arcanis's full-sized avatar

Maël Nison arcanis

View GitHub Profile
@arcanis
arcanis / gist:5780938
Created June 14, 2013 10:41
Résultat d'un `tree` sur Castel
.
└── castel
├── ast
│ ├── expr
│ │ ├── Binary.hh
│ │ ├── Conditional.hh
│ │ ├── External.hh
│ │ ├── literal
│ │ │ ├── Boolean.hh
│ │ │ ├── Class.hh
@arcanis
arcanis / configure.txt
Created June 29, 2013 00:28
LLVM emscripting
--enable-optimized
--disable-polly
--disable-clang-arcmt
--disable-clang-static-analyzer
--disable-clang-rewriter
--disable-assertions
--disable-debug-symbols
--disable-jit
--disable-docs
--disable-threads
diff --git a/src/library.js b/src/library.js
index 84071b6..ae61697 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5794,7 +5794,7 @@ LibraryManager.library = {
dlopen: function(filename, flag) {
// void *dlopen(const char *file, int mode);
// http://pubs.opengroup.org/onlinepubs/009695399/functions/dlopen.html
- filename = (ENV['LD_LIBRARY_PATH'] || '/') + Pointer_stringify(filename);
+ filename = filename ? (ENV['LD_LIBRARY_PATH'] || '/') + Pointer_stringify(filename) : '';
define( 'ace/mode/pegjs', [
'ace/lib/oop',
'ace/mode/text_highlight_rules',
'ace/mode/javascript_highlight_rules'
], function ( oop, textHighlightRules, javascriptHighlightRules ) {
'use strict';

Javascript

@arcanis
arcanis / README.md
Last active January 2, 2016 14:09
Custom git command for Pivotal / Github

Git Pivotal

git pivotal --start <branch_01234567>|<01234567>
  Creates a new branch, sets its upstream to the correct remote branch then
  sets the task state to 'started'. If the branch name is omitted, the script
  will use the name of the current branch. If the branch name only contain an
  issue ID, the script will try to make use of the _git_pivotal completion.

git pivotal --clean
barDemo.selectAll("rect").
data(data).
enter().
append("svg:rect").
attr("x", function(datum, index) { return x(index); }).
attr("y", function(datum) { return height - y(datum.books); }).
attr("height", function(datum) { return y(datum.books); }).
attr("width", barWidth).
attr("fill", "#2d578b");
var startEmulator = function (rom) {
var engine = Virtjs.create(Virtjs.engine.GameBoy, {
devices : {
screen : new Virtjs.screen.WebGL(),
input : new Virtjs.input.Keyboard({ map : map }),
timer : new Virtjs.timer.RAFrame(),
data : new Virtjs.data.LocalStorage()
},
@arcanis
arcanis / pre-commit.sh
Last active August 29, 2015 14:06
Linting Moumoute
#!/usr/bin/env bash
result=0
cd "$(git rev-parse --show-toplevel)"
# Stash the current changes, so that we preserve them
git stash -q --keep-index
# Get the list of changed files from the index
This file has been truncated, but you can view the full file.