Skip to content

Instantly share code, notes, and snippets.

@bilalsavas
bilalsavas / gist:aa4da7bcc4ea69d3eaf4691be82d93f5
Created February 1, 2024 10:59
AG-GRID Version 31.0.0 Türkçe Locale
const AG_GRID_LOCALE_TR = {
// Set Filter
"selectAll": "(Tümünü Seç)",
"selectAllSearchResults": "(Tüm Arama Sonuçlarını Seç)",
"addCurrentSelectionToFilter": "Mevcut seçimi filtreye ekle",
"searchOoo": "Arama...",
"blanks": "(Boşlar)",
"noMatches": "Eşleşme yok",
// Number Filter & Text Filter
@bilalsavas
bilalsavas / fb_event_attendees.pde
Last active August 29, 2015 14:04
extracts pdf catalogue of event attendees(picture,name) from facebook with graph api
import processing.pdf.*;
JSONObject json;
PImage img;
JSONArray j;
PFont font;
int yatay=0;
int dikey=0;
String access_token="fb access_token buraya";
import processing.video.*;
Capture video;
int fWidth=640;
int fHeight=360;
boolean[][] prevFrame = new boolean[fWidth][fHeight];
void setup()
import processing.video.*;
import processing.serial.*;
Serial myPort;
Capture video;
boolean[][] laserArray = new boolean[640][360];
void setup() {
colorMode(HSB);
frameRate(30);
@bilalsavas
bilalsavas / reflex.ino
Created November 26, 2013 11:13
reflex sample
/*
Button
Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 2.
The circuit:
* LED attached from pin 13 to ground
* pushbutton attached to pin 2 from +5V
@bilalsavas
bilalsavas / arduinoPart.pde
Last active December 28, 2015 18:38
Arduino memsic gyro sensor project w/ processing dataviz
/*
Memsic2125
Read the Memsic 2125 two-axis accelerometer. Converts the
pulses output by the 2125 into milli-g's (1/1000 of earth's
gravity) and prints them over the serial connection to the
computer.
The circuit:
* X output of accelerometer to digital pin 2
@bilalsavas
bilalsavas / jawbreaker.pde
Created November 12, 2013 11:06
Arduino potansiyometre + button örneği
import processing.serial.*;
import cc.arduino.*;
// arduino tanımlama [2] yerine çalıştırılacak olan COM un indexi
Arduino a = new Arduino(this, Arduino.list()[2], 57600);
color c;
void setup()
{
/**
* This sketch demonstrates how to use an FFT to analyze
* the audio being generated by an AudioPlayer.
* <p>
* FFT stands for Fast Fourier Transform, which is a
* method of analyzing audio that allows you to visualize
* the frequency content of a signal. You've seen
* visualizations like this before in music players
* and car stereos.
*/
PFont p;
void setup()
{
size(800, 600);
p = loadFont("Dialog.plain-48.vlw");
}
void draw()
{
class ciz
{
void Ciz(int a)
{
switch (a)
{
case 0:
//line örnek
smooth();
stroke(color(255, 210, 0));