Skip to content

Instantly share code, notes, and snippets.

View behrooz-tahanzadeh's full-sized avatar

Behrooz Tahanzadeh behrooz-tahanzadeh

View GitHub Profile
@behrooz-tahanzadeh
behrooz-tahanzadeh / kickoff.bash
Last active August 1, 2017 11:28
show a prompt listing all files start with __ and run grunt over the selected file
NC='\033[0m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
LIGHT_PURPLE='\033[1;35m'
clear_screen()
{
printf "\ec"
}
@behrooz-tahanzadeh
behrooz-tahanzadeh / serial_io.py
Last active February 9, 2017 11:25
Python Interface For Arduino
import socket
import serial
import thread
recv_ip = ""
recv_port = 9090
forward_ip = "127.0.0.1"
@behrooz-tahanzadeh
behrooz-tahanzadeh / CableContraction.dat
Created February 21, 2016 22:19
SOFiSTiK solution for bending an element by contracting a cable
$ -- Developed By Behrooz Tahanzadeh --
$ ------------- Feb 2016 --------------
!#!CHAPTER Solution
+PROG ASE
HEAD CableContraction
ECHO FULL
LET#i 0
#import statements
import subprocess
from cgi import escape,parse_qs
from wsgiref.simple_server import make_server
import atexit
def prepareCmd(req):
@behrooz-tahanzadeh
behrooz-tahanzadeh / Gruntfile.js
Last active February 9, 2017 11:14
Grunt description file to minify every Javascript file and put it beside its sources file
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig(
{
pkg: grunt.file.readJSON('package.json'),
uglify:
{
import processing.video.*;
int numPixels;
float []previousFrame;
Capture cam;
float pixAverage;
void setup()
{
size(640, 480);
cam = new Capture(this, width, height);
@behrooz-tahanzadeh
behrooz-tahanzadeh / index.html
Created November 21, 2012 07:49
A CodePen by Behrooz Tahanzadeh. create hoverintent effect using transition-delay - I always use hoverintent plugin for jQuery in order to prevent accidental firing of a function (it can be an animation or AJAX request). hoverintent add an delay before tr
<div class="both">
</div>
<div class="before-over">
</div>
<div class="before-out">
</div>