Skip to content

Instantly share code, notes, and snippets.

View iRyusa's full-sized avatar

Maxime Brazeilles iRyusa

  • Dernier Cri
  • Lille, France
View GitHub Profile
yarn run v1.15.2
$ react-native run-ios --simulator "iPhone 11 Pro"
info Found Xcode workspace "citeazy.xcworkspace"
info Building (using "xcodebuild -workspace citeazy.xcworkspace -configuration Debug -scheme citeazy -destination id=05692D34-2D79-4A9C-B31A-2C4055C9C425 -derivedDataPath build/citeazy")
▸ Running script 'Bundle React Native code and images'
▸ Running script 'Run Script'
▸ Linking citeazyTests
❌ Undefined symbols for architecture x86_64
> Symbol: _RCTSharedApplication
@iRyusa
iRyusa / README.md
Last active February 21, 2017 12:57

Using MJML beta locally

Setup

This guide allows you to quickly setup an MJML environment. You'll need Node >=6 & NPM >3

1 - Create a new folder where you'll start working

$ mkdir mjml_workspace
@iRyusa
iRyusa / app.js
Last active March 11, 2016 08:12
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min
}
window.onload = function() {
var canvas = document.getElementById("draw"),
ctx = canvas.getContext('2d'),
keyDown = {},
i = 1;
@iRyusa
iRyusa / layout.haml
Created May 22, 2013 12:21
Snippet for missing translation highlight in RAILS layout
- if Rails.env.development?
:css
.translation_missing{
color: red;
}
@iRyusa
iRyusa / controller.rb
Created May 2, 2012 13:44
jQuery jStorage Ajax Cache
# /
def index
@last_news_id = News.last.id
# another stuff here
end
# /last_news
def last_news
@news = News.last(5).reverse
render 'last_news.html', :layout => false
@iRyusa
iRyusa / gist:1364034
Created November 14, 2011 14:19
Check if one tab contain the other
// Test tab
var tab1 = [1, 2, 3, 4, 5 ];
var tab2 = [1, 2, 3, 4 ];
// Hash to compare
var compare = {};
var found = true;
// Clone the tab
for ( var i in tab1 ) {
compare[tab1[i]] = tab1[i];
@iRyusa
iRyusa / nodeJS daemonize
Created September 30, 2011 08:49
Get Pidfile for nodeJS Script on Debian based distrib
#!upstart
description "node_script"
author "nectity"
start on runlevel [23]
stop on shutdown
script
exec start-stop-daemon --start --make-pidfile --pidfile {node_script pid file} --exec {path_to_node} {path_to_node_script} 2>&1 >> {file_log}
end script
@iRyusa
iRyusa / delayedTimeout.js
Created June 23, 2011 13:11 — forked from robink/delayedTimeout.js
Javascript Deferred Interval
var delayedTimeout = function( callback, initialTime, maxTime ) {
this.currentTime = initialTime;
this.callback = callback;
this.maxTime = 0 || maxTime;
this.nextTick();
}
delayedTimeout.prototype = {
stop : function () {