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| 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 |
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| 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; |
| - if Rails.env.development? | |
| :css | |
| .translation_missing{ | |
| color: red; | |
| } |
| # / | |
| 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 |
| // 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]; |
| #!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 |
| var delayedTimeout = function( callback, initialTime, maxTime ) { | |
| this.currentTime = initialTime; | |
| this.callback = callback; | |
| this.maxTime = 0 || maxTime; | |
| this.nextTick(); | |
| } | |
| delayedTimeout.prototype = { | |
| stop : function () { |