Skip to content

Instantly share code, notes, and snippets.

View alptugan's full-sized avatar

alp tuğan alptugan

View GitHub Profile
@alptugan
alptugan / GLSL-Lights.md
Created January 8, 2017 18:15 — forked from patriciogonzalezvivo/GLSL-Lights.md
GLSL Shaders Lights Funtions
@alptugan
alptugan / Tri-planar.md
Created January 8, 2017 18:13 — forked from patriciogonzalezvivo/Tri-planar.md
GLSL Triplanar Texture Mapping
@alptugan
alptugan / CONDTIONALS
Last active June 4, 2023 12:21
Sonic Pi Cheat Sheet
So, let’s flip a coin: if it’s heads, play a drum, if it’s tails, play a cymbal. Easy. We can emulate a coin flip with our one_in function (introduced in the section on randomness) specifying a probability of 1 in 2: one_in(2). We can then use the result of this to decide between two pieces of code, the code to play the drum and the code to play the cymbal:
loop do
if one_in(2)
sample :drum_heavy_kick
else
sample :drum_cymbal_closed
end
@alptugan
alptugan / Run with OPENGL on Lubuntu
Last active May 1, 2019 20:11
installation rPi + openFrameworks v0.92
// log into the project folder
make
// If succesful then
MESA_GL_VERSION_OVERRIDE=2.1 bin/project_name
@alptugan
alptugan / Include data folder into app
Last active August 6, 2019 10:47
oF mini examples
// 1 - Move the Data folder inside to compiled Application
// Add this line into ofApp.cpp
ofSetDataPathRoot("../Resources/data/");
// 2- Click project file (blue icon at top-left)->Build Phases->Run Script
// Paste the following line at the end
cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources";
@alptugan
alptugan / css snippets
Created September 22, 2015 11:29
CSS Snippets
HTML CODE
<div id="navcontainer">
<ul>
<li><a href="#">Milk</a></li>
<li><a href="#">Eggs</a></li>
<li><a href="#">Cheese</a></li>
<li><a href="#">Vegetables</a></li>
<li><a href="#">Fruit</a></li>
</ul>
</div>
@alptugan
alptugan / Aicrack-ng
Last active May 1, 2019 20:25
Linux commands Debian
# Change your mac address
ifconfig wlan0 down
macchanger -m 00:11:22:33:44:55 wlan0
# wkae up wlan0 interface
ifconfig wlan0 up
# start wifi
airmon-ng start wlan0