Skip to content

Instantly share code, notes, and snippets.

View ehzawad's full-sized avatar
🎃
Wasteland Baby!

ehzawad ehzawad

🎃
Wasteland Baby!
View GitHub Profile
@ehzawad
ehzawad / .eslintrc
Created March 17, 2016 11:46 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
#!/bin/bash
# determine IP address
vmm=
if [ "$vmm" == "xen" ]; then
# this is EC2, fetch public IP from AWS
declare inet=$(wget --output-document=- --quiet --timeout=5 --tries=10 http://169.254.169.254/latest/meta-data/public-ipv4)
declare regex='([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})'
else
declare inet=$(ip -f inet addr show eth1 2> /dev/null | grep inet)
@ehzawad
ehzawad / gulpfile.js
Created March 17, 2016 21:54 — forked from wesbos/gulpfile.js
FAST Browserify + Reactify + Babelify
// Update: Hey Folks - I've got a full Gulpfile with everything else over at https://github.com/wesbos/React-For-Beginners-Starter-Files
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserify = require('browserify');
var reactify = require('reactify');
var babelify = require('babelify');
var watchify = require('watchify');
var notify = require('gulp-notify');
Manipulating the filesystemThe file explorer includes commands for creating new files and directories, as well as renaming or deleting existing ones. This table summarizes these:
##command action
% create a new file
d create a new directory
R rename the file/directory under the cursor
D Delete the file/directory under the cursorFurther Reading
FOr More see
@ehzawad
ehzawad / hex to binary.asm
Created March 20, 2016 17:51 — forked from SohanChy/hex to binary.asm
Convert single char Hex input to Binary in assembly code - intel 8086
.model small
.stack 100h
.data
countOne db ?
countZero db ?
nln db 0ah,0dh,'$'
msg1 db 'Number of Ones: $'
msg2 db 0ah,0dh,'Number of Twos: $'
.code
main proc
echo "hi clang symbolic links"
sudo ln -s -f /usr/bin/clang-3.7 /usr/bin/clang
sudo ln -s -f /usr/bin/clang++-3.7 /usr/bin/clang++
sudo ln -s -f /usr/bin/lldb-3.7 /usr/bin/lldb
sudo ln -s -f /usr/bin/clang-format-3.7 /usr/bin/clang-format
sudo ln -s -f /usr/bin/clang-apply-replacements-3.7 /usr/bin/clang-apply-replacements
sudo ln -s -f /usr/bin/clang-check-3.7 /usr/bin/clang-check
sudo ln -s -f /usr/bin/clang-format-diff-3.7 /usr/bin/clang-format-diff
sudo ln -s -f /usr/bin/clang-modernize-3.7 /usr/bin/clang-modernize
@ehzawad
ehzawad / tmux-cheatsheet.markdown
Created March 26, 2016 19:30 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
http://julialang.org/
http://julialang.org/soc/guidelines/
http://julialang.org/soc/ideas-page.html
#include <iostream>
typedef struct node{
int data;
struct node* next;
}node;
node* head = NULL;