This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osc(70,0.001,1).modulate(noise(1,1).thresh()).out() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.net.*; | |
Client client; | |
void setup() | |
{ | |
size(200, 200); | |
noStroke(); | |
client = new Client(this, "127.0.0.1", 8888); | |
} | |
void draw() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |