Skip to content

Instantly share code, notes, and snippets.

View loftywaif002's full-sized avatar
🎯
Focusing

Dipro Chowdhury loftywaif002

🎯
Focusing
  • IBM
  • San Francisco
  • 15:27 (UTC -08:00)
View GitHub Profile
@loftywaif002
loftywaif002 / knock-lock
Created February 6, 2017 23:55
knock-lock using servo motor
#include <Servo.h> //Include the Servo Library
Servo myServo;
//Name the input/ouput
const int piezo = A0;
const int switchPin = 2;
const int yellowLed = 3;
const int redLed = 4;
const int greenLed = 5;
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int switchPin = 6;
int switchState = 0;
int prevSwitchState = 0 ;
int reply;
void setup(){
lcd.begin(16,2);
@loftywaif002
loftywaif002 / .bashrc
Created February 1, 2017 05:52 — forked from vsouza/.bashrc
Golang 1.5 setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@loftywaif002
loftywaif002 / doc.md
Created November 18, 2016 06:27 — forked from oelmekki/doc.md
Rails + Browserify + React + es7

1. Gemfile

gem 'browserify-rails', '1.5.0' # until fix: https://github.com/browserify-rails/browserify-rails/issues/101
gem 'react-rails'

Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component (and thus, prerendering).

Note that jquery-rails can be removed from Gemfile, the npm version of jquery and jquery-ujs will be used instead.