Skip to content

Instantly share code, notes, and snippets.

Vincent Lecrubier crubier

Block or report user

Report or block crubier

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
View gist:a8f9b26b7b33a3ed93785cd9bc3a3032
{
"accessors": {
"accessor_buffer_Bras#2_0": {
"bufferView": "bufferView_buffer_Bras#2_0",
"byteOffset": 0,
"byteStride": 32,
"componentType": 5126,
"count": 238,
"max": [
3.200000047683716,
@crubier
crubier / applyRegexToAllFilesInDirectory
Created Jan 17, 2017
Apply Regex to all files in directory, using node js
View applyRegexToAllFilesInDirectory
var fs = require('fs');
function readFiles(dirname, onFileContent, onError) {
fs.readdir(dirname, function(err, filenames) {
if (err) {
onError(err);
return;
}
filenames.forEach(function(filename) {
fs.readFile(dirname + filename, 'utf-8', function(err, content) {
@crubier
crubier / VietnameseSMT2
Created May 20, 2015
SMT2 Description of the vietnamese problem
View VietnameseSMT2
;Nous déclarons 10 nombres entiers nommés a,b,c,...,i :
(declare-const a Int)
(declare-const b Int)
(declare-const c Int)
(declare-const d Int)
(declare-const e Int)
(declare-const f Int)
(declare-const g Int)
(declare-const h Int)
(declare-const i Int)</code>
@crubier
crubier / VietnameseProblemSolver
Created May 20, 2015
Vietnamese Problem Solver
View VietnameseProblemSolver
for (var a = 1; a &lt;= 9; a++) {
for (var b = 1; b &lt;= 9; b++) {
for (var c = 1; c &lt;= 9; c++) {
for (var d = 1; d &lt;= 9; d++) {
for (var e = 1; e &lt;= 9; e++) {
for (var f = 1; f &lt;= 9; f++) {
for (var g = 1; g &lt;= 9; g++) {
for (var h = 1; h &lt;= 9; h++) {
for (var i = 1; i &lt;= 9; i++) {
if (a + 13 * b / c + d + 12 * e - f - 11 + g * h / i - 10 == 66) {
You can’t perform that action at this time.