Skip to content

Instantly share code, notes, and snippets.

View saniko's full-sized avatar

Dani Koren saniko

  • Israel
View GitHub Profile
@saniko
saniko / gist:2a3149078bc14749da3260c8ac943465
Created May 11, 2017 10:39 — forked from kurtzilla/gist:c134c74142ce59d0bdf2d90db7321dcb
Deploy react-universally to Heroku from start to finish
fork/clone master branch: [email protected]:ctrlplusb/react-universally.git
cd [your-repo]
npm install
touch .slugignore
echo yarn.lock >> .slugignore
edit config/index.js
@saniko
saniko / README.md
Created December 22, 2016 08:37 — forked from anthonybrown/README.md
My simply Git Cheatsheet
@saniko
saniko / ES6
Created December 17, 2016 10:11
A good summary for ES6 features:
https://ponyfoo.com/articles/es6
@saniko
saniko / wikipedia-searcher-example-mithriljs.js
Created June 15, 2016 20:29 — forked from oxalorg/wikipedia-searcher-example-mithriljs.js
My first simple web app using Mithril.js
// Find this on codepen http://codepen.io/miteshninja/full/gMMrmo/
// Code refactored by @barneycarroll
var app = {};
var api = "https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=";
var cb = '&callback=JSON_CALLBACK';
var wPage = "https://en.wikipedia.org/?curid=";
app.WikiPages = function (title) {
return m.request({
define([
'marionette',
'handlebars',
'modules/accountsData/views/pie',
'modules/accountsData/views/table',
'text!modules/accountsData/templates/wrapper.html',
],
function(Marionette, Handlebars, pie, table, tmpl) {
@saniko
saniko / app.js file
Created October 11, 2012 16:59
a very simple bootstrap boilerplate for building backbone.marionette based on require.js
define([
'jquery',
'underscore',
'backbone',
'marionette',
'handlebars',
'text!templates/app_view.html',
'modules/mainMenuView/mainMenuView',