Skip to content

Instantly share code, notes, and snippets.

@esironal
esironal / 0_reuse_code.js
Created June 7, 2014 12: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
@esironal
esironal / javascript_resources.md
Created June 7, 2014 12:09 — 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
@esironal
esironal / css_resources.md
Created June 7, 2014 12:09 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

#!/bin/bash
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives).
### make sure that this script is executed from root
if [ $(whoami) != 'root' ]
then
echo "
This script should be executed as root or with sudo:
sudo $0
"
@esironal
esironal / .info
Last active October 7, 2019 20:41
CodeMirror Themes
CodeMirror Themes
@esironal
esironal / JsDeliverAPItest.html
Created August 26, 2015 22:36
JsDeliver API Test
<!doctype html>
<html><head>
<title>How to Parse a JSON file using jQuery</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<style>
body { text-align: center; font-family: arial; }
.button { margin:20px; font-size:16px; font-weight: bold; padding:5px 10px; }
</style>
</head><body>
<a href="//api.jsdelivr.com/v1/jsdelivr/libraries/lodash?fields=lastversion,name" target="_blank">Open JSON file</a><br />
@esironal
esironal / codemirror.html
Created August 27, 2015 01:31
Code mirror
<script src="//cdn.jsdelivr.net/g/[email protected](addon/comment/comment.js+addon/display/fullscreen.js+addon/display/placeholder.js+addon/edit/closebrackets.js+addon/edit/closetag.js+addon/edit/continuelist.js+addon/edit/matchbrackets.js+addon/edit/matchtags.js+addon/edit/trailingspace.js+addon/fold/foldgutter.js+addon/hint/anyword-hint.js+addon/hint/css-hint.js+addon/hint/html-hint.js+addon/hint/javascript-hint.js+addon/hint/show-hint.js+addon/hint/sql-hint.js+addon/hint/xml-hint.js+addon/lint/css-lint.js+addon/lint/javascript-lint.js+addon/lint/json-lint.js+addon/lint/lint.js+addon/lint/yaml-lint.js+addon/merge/merge.js+addon/mode/loadmode.js+addon/mode/multiplex.js+addon/mode/overlay.js+addon/runmode/colorize.js+addon/runmode/runmode-standalone.js+addon/runmode/runmode.js+addon/scroll/scrollpastend.js+addon/search/match-highlighter.js+addon/search/search.js+addon/search/searchcursor.js+addon/selection/active-line.js+addon/selection/mark-selection.js+addon/tern/tern.js+codemirror.js+codemirror.min.js+keyma
@esironal
esironal / jsonJquery.html
Created August 27, 2015 02:14
Json Jquery
<!doctype html>
<html>
<head>
<title>How to Parse a JSON file using jQuery</title>
<style>
body{
text-align: center;
font-family: arial;
@esironal
esironal / htmlpreview.js
Created August 27, 2015 19:06
Github Gist and Bitbucket HTML preview JS
var HTMLPreview = {
content: '',
previewform: document.getElementById('previewform'),
file: function() {
return location.search.substring(1); //Get everything after the ?
},
@esironal
esironal / listgists.js
Created September 2, 2015 18:10
List Public Gists
var $List = $('#list'),
sUser ='potherca',
sUrl = 'https://api.github.com/users/' + sUser + '/gists'
;
$.ajax({
dataType: "json",
url: sUrl,
success: function(p_oData){
$.each(p_oData, function(p_iIndex, p_oRepo){