Skip to content

Instantly share code, notes, and snippets.

SitePointEditors

Block or report user

Report or block SitePointEditors

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
@SitePointEditors
SitePointEditors / dom-helper.js
Created Mar 28, 2017 — forked from m3g4p0p/dom-helper.js
Mini jQuery, sort of.
View dom-helper.js
/**
* A collection of helper prototype for everyday DOM traversal, manipulation,
* and event binding. Sort of a minimalist jQuery, mainly for demonstration
* purposes. MIT @ m3g4p0p
*/
window.$ = (function (undefined) {
/**
* Duration constants
* @type {Object}
View serializing-java-objects-output-2.md

03:37:26 prompt > Where do you want to load your phone book from? File name:

book 03:37:29 message > Loaded your book phone book of 1 contacts.

03:37:29 message > Contacts: < lincoln: 9165551234 > | < kate: 5135554321 > |

03:37:29 prompt > What do you want to do?

View serializing-java-objects-output-1.md

03:33:51 prompt > Where do you want to load your phone book from? File name:

book 03:33:54 debug > Loading phone book from book.txt failed. No phone book found at that directory.

03:33:54 message > Opened a new phone book at book

03:33:54 message > Menu: Enter | Action 1 to View Contacts

@SitePointEditors
SitePointEditors / painter.cljs
Last active Mar 14, 2016 — forked from danprince/painter.cljs
Immutable, undoable pixel editor
View painter.cljs
(def height 10)
(def width 10)
(def pixel-size 10)
(defn ->2D [i]
[(mod i width)
(.floor js/Math (/ i width))])
(def coords (map ->2D, (range (* height width))))
(def colors (repeat "#fff"))
View application.controller.js
//Article url: http://www.sitepoint.com/understanding-components-in-ember-2/
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
You can’t perform that action at this time.