Skip to content

Instantly share code, notes, and snippets.

View IndianTinker's full-sized avatar

Rohit Gupta IndianTinker

View GitHub Profile
const { app } = require('deta');
//require('dotenv').config()
const {TwitterClient} = require('twitter-api-client')
const twitterClient = new TwitterClient({
apiKey: process.env.TWITTER_API_KEY,
apiSecret: process.env.TWITTER_API_SECRET,
accessToken: process.env.TWITTER_ACCESS_TOKEN,
accessTokenSecret: process.env.TWITTER_ACCESS_TOKEN_SECRET
})
osc(70,0.001,1).modulate(noise(1,1).thresh()).out()
@IndianTinker
IndianTinker / table.pde
Created May 10, 2020 15:40
GeneratorGenerative
int formResolution = 100;
int stepSize = 2;
float distortionFactor = 3;
float initRadius = 10;
float centerX, centerY;
float[] x = new float[formResolution];
float[] y = new float[formResolution];
@IndianTinker
IndianTinker / SimpleTest.pde
Created February 12, 2017 05:37
Simple Fluidsynth and Processing Integration
import processing.net.*;
Client client;
void setup()
{
size(200, 200);
noStroke();
client = new Client(this, "127.0.0.1", 8888);
}
void draw()
@IndianTinker
IndianTinker / tweet.js
Created November 8, 2015 13:44
Elementry Sentiment Analysis using nodejs
var rating=0;
var count=0;
var
twit= require('twit'),
sentiment = require('sentiment')
fs=require('fs');
;
var wstream=fs.createWriteStream('tweetdata_pune.csv');
var T = new twit({
@IndianTinker
IndianTinker / OVC3860_IR.INO
Created May 29, 2015 17:10
MSP430 and OVC3860
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
unsigned int newval=0;
unsigned int oldval=0;
unsigned int count=0;
@IndianTinker
IndianTinker / FM430.ino
Created May 18, 2015 18:14
FM430_Pushbutton
#include <Wire.h>
unsigned char frequencyH = 0;
unsigned char frequencyL = 0;
unsigned int frequencyB;
double frequency = 0;
double channels[6]={91.1,93.5,94.3,98.3,101.0,107.4};
unsigned int i=0;
void setup()
@IndianTinker
IndianTinker / RoomMote.ino
Last active August 29, 2015 14:20
RoomMote
/*
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License
*/
#include <IRremote.h>
int RECV_PIN = 5; //The pin to which IR Receiver's output goes
@IndianTinker
IndianTinker / PCD8544.h
Created November 9, 2014 05:38
Nokia 5110 with MSP430
#ifndef PCD8544_H_
#define PCD8544_H_
#define PCD8544_POWERDOWN 0x04
#define PCD8544_ENTRYMODE 0x02
#define PCD8544_EXTENDEDINSTRUCTION 0x01
#define PCD8544_DISPLAYBLANK 0x0
#define PCD8544_DISPLAYNORMAL 0x4
#define PCD8544_DISPLAYALLON 0x1
@IndianTinker
IndianTinker / tags
Last active August 29, 2015 14:07
Adding Tags using Liquid
---
layout: page
title: Categories
---
Tag name
--------
*Tiny details*
{% for post in site.posts %}
{% for tag in post.tags %}