Skip to content

Instantly share code, notes, and snippets.

🦁
Writing the open-source software that you may be using everyday

Maël Nison arcanis

🦁
Writing the open-source software that you may be using everyday
Block or report user

Report or block arcanis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arcanis
arcanis / pre-commit.sh
Last active Aug 29, 2015
Linting Moumoute
View pre-commit.sh
#!/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
View virt.js
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()
},
View gist:83dc04ccf211a27291d0
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");
@arcanis
arcanis / README.md
Last active Jan 2, 2016
Custom git command for Pivotal / Github
View README.md

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
View gist:8004655

Javascript

View ace-pegs.js
define( 'ace/mode/pegjs', [
'ace/lib/oop',
'ace/mode/text_highlight_rules',
'ace/mode/javascript_highlight_rules'
], function ( oop, textHighlightRules, javascriptHighlightRules ) {
'use strict';
View dlopen.patch
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) : '';
View configure.txt
--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
@arcanis
arcanis / gist:5780938
Created Jun 14, 2013
Résultat d'un `tree` sur Castel
View gist:5780938
.
└── castel
├── ast
│ ├── expr
│ │ ├── Binary.hh
│ │ ├── Conditional.hh
│ │ ├── External.hh
│ │ ├── literal
│ │ │ ├── Boolean.hh
│ │ │ ├── Class.hh
You can’t perform that action at this time.