Skip to content

Instantly share code, notes, and snippets.

View logikinc's full-sized avatar
💭
I may be slow to respond.

LogikIO logikinc

💭
I may be slow to respond.
View GitHub Profile
@logikinc
logikinc / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@logikinc
logikinc / javascript_resources.md
Last active August 29, 2015 14:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
var App = function() {
var debug = true;
var self = this;
/**
* Initializing app on document ready
* or device ready in case of PhoneGap
*
* @returns {App}
@logikinc
logikinc / ionic_grids.html
Created November 3, 2014 21:37
Ionic Framework Grids
<!-- columns -->
<div class="row">
<div class="col col-50">.col.col-50</div>
<div class="col">.col</div>
<div class="col">.col</div>
</div>
<!-- columns offset -->
<div class="row">
<div class="col col-33">.col</div>
@logikinc
logikinc / angularjs-heaven.md
Last active August 29, 2015 14:14
AngularJS Plugins & Resources
@logikinc
logikinc / angular_factory_default.js
Last active August 29, 2015 14:15
AngularJS Good Factory Default Snippet
var app = angular.module('app', []);
app.controller('Ctrl1', function(DataFactory) {
this.items = DataFactory.items;
DataFactory.getDataStream();
});
app.controller('Ctrl2', function($timeout, DataFactory) {
// when this eventually fires and gets *remote* data again
@logikinc
logikinc / github_repo_response.json
Created February 25, 2015 20:22
Github get repo response for laravel/laravel
{
"id": 1863329,
"name": "laravel",
"full_name": "laravel/laravel",
"owner": {
"login": "laravel",
"id": 958072,
"avatar_url": "https://avatars.githubusercontent.com/u/958072?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/laravel",
@logikinc
logikinc / activity_stream.json
Created March 23, 2015 21:37
Activity Stream
{
"items" : [
{
"published": "2011-02-10T15:04:55Z",
"foo": "some extension property",
"generator": {
"url": "http://example.org/activities-app"
},
"provider": {
"url": "http://example.org/activity-stream"
@logikinc
logikinc / activity_stream_basic.json
Created March 23, 2015 21:37
Basic Activity Stream
{
"published": "2011-02-10T15:04:55Z",
"actor": {
"url": "http://example.org/martin",
"objectType" : "person",
"id": "tag:example.org,2011:martin",
"image": {
"url": "http://example.org/martin/image",
"width": 250,
"height": 250
@logikinc
logikinc / neo4j_unique_index.md
Last active August 29, 2015 14:18
Neo4j new Unique Index

CREATE CONSTRAINT ON (user:User) ASSERT user.username IS UNIQUE