varying vec4 vPos;
varying vec3 vNormal;
void main(){
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
# 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 |
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
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> |
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
// 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"; |
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
// log into the project folder | |
make | |
// If succesful then | |
MESA_GL_VERSION_OVERRIDE=2.1 bin/project_name |
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
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 | |
Extracted from https://github.com/rpavlik/maya2osg/tree/master/src/GLSL
varying vec2 vTexCoord;
varying vec3 vNormal;
varying vec3 vEye;
void main() {
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
Reference: | |
https://www.metachris.com/2015/11/create-standalone-mac-os-x-applications-with-python-and-py2app/ | |
// Create virtual environment | |
virtualenv venv | |
. venv/bin/activate | |
// Install py2app | |
pip install -U git+https://github.com/metachris/py2app.git@master | |
py2applet --make-setup app_name.py |
#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.
tested on: orangepi one banana pi M2
dependencies:
apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \
x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
build-essential automake pkg-config libtool ca-certificates git cmake subversion
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
# open bash_profile | |
sudo nano ~/.bash_profile | |
# add the following line | |
. ~/.bash_aliases | |
Kntrl+o | |
Kntrl+x | |
source ~/.bash_profile | |
OlderNewer