Skip to content

Instantly share code, notes, and snippets.

View albacoretuna's full-sized avatar

Nick O. albacoretuna

View GitHub Profile
@albacoretuna
albacoretuna / 0_reuse_code.js
Created July 6, 2014 03:14
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
@albacoretuna
albacoretuna / index.html
Created August 6, 2014 07:34
Touch Draw
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width; user-scalable=no; initial-scale=1.0; maximum-scale=1.0;"/>
<script src="jquery-1.7.1.min.js"> </script>
<style type="text/css">
.rahmen {
@albacoretuna
albacoretuna / Fade in fade out
Created August 29, 2014 07:57
Fadeout Fadein hide... jquery functions
fadeIn()
fadeOut()
hide()
fadeTo('fast',1)
@albacoretuna
albacoretuna / jumbotron.html
Created September 4, 2014 05:10
Bootstrap jumbotron
<!-- row 2 -->
<div class="jumbotron">
<img src="img/jumbotron.jpg" alt="">
<h1> We treat your pets like our own</h1>
<p>At Wisdom Pet Medicine, we strive to blend the best in traditional and alternative healing techniques to diagnose and treat companion animals, including dogs, cats, birds, reptiles, rodents, and fish. </p>
</div>
@albacoretuna
albacoretuna / index.html
Last active August 29, 2015 14:11
Sekender A HTML5 app to find the nearest second hand store.
<!DOCTYPE html>
<html>
<head>
<!-- I have used jQuery Mobile for the UI, Google api for the map. So here comes all the js libraries, jquery, jquery mobile, google maps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" href="styles.css">
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
@albacoretuna
albacoretuna / SassMeister-input-HTML.html
Created January 27, 2015 10:06
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Week 3</title>
<script type="text/javascript" src="modernizr.js"></script>
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Princess+Sofia" />
<link rel="stylesheet" href="style.css" />
@albacoretuna
albacoretuna / vim_cheatsheet.md
Last active August 29, 2015 14:27 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
[user]
email =
name =
[core]
editor = vim
safecrlf = false
autocrlf = input
excludesfile = /home/omid/.gitignore
[github]
user = omidfi
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
// require an internal utility in node for running commands in command line
var exec = require('child_process').exec;
var child;
// get exec from that utily, give the command you want to run as it's first argument
child = exec('npm install ffi',
function (error, stdout, stderr) {
// these are the result, somehow, it's devided to when there's error, or output etc.
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);