Skip to content

Instantly share code, notes, and snippets.

View cyrstem's full-sized avatar
🏠
Working from home

cyrstem cyrstem

🏠
Working from home
View GitHub Profile
import processing.pdf.*;
color[] rgb = {
#FF0000, #00FF00, #0000FF
};
//SPACING BETWEEN LINES
float spMin = 2;
float spMax = 4;
float strokeWidth = 0.5;
@cyrstem
cyrstem / main.cpp
Created April 19, 2018 02:25 — forked from kylemcdonald/main.cpp
Depth in shader using openFrameworks.
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
ofShader shader;
ofEasyCam cam;
ofFbo fbo;
void setup() {
ofBackground(0);
ofFbo::Settings s;
@cyrstem
cyrstem / ofMatrix4x4-vs-glm.cpp
Created May 9, 2018 17:24 — forked from kylemcdonald/ofMatrix4x4-vs-glm.cpp
ofMatrix4x4 compared to glm::mat4.
#include "ofMain.h"
int main() {
// both initialize to identity matrix
cout << glm::mat4() << endl;
cout << ofMatrix4x4() << endl;
// both row-major (translation stored in mat[3][0,1,2])
glm::mat4 glmMat;
glmMat = glm::translate(glmMat, glm::vec3(1,2,3));
ofPolyline temp;
float ff = ofGetElapsedTimef();
for (int i = 0; i < 100; i++){
float angle = ofMap(i, 0, 100, 0, TWO_PI);
ofPoint pt= ofPoint(400,400);
float radius = 200 + ofSignedNoise(ff*0.1, cos(angle)*0.3, sin(angle)*0.3) * 100;
pt += radius * ofPoint(cos(angle), sin(angle));
temp.addVertex(pt);
}
temp.setClosed(true);
@cyrstem
cyrstem / CSS3 Media Queries Template
Created April 29, 2020 23:33
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@cyrstem
cyrstem / README.md
Created March 3, 2022 23:25 — forked from julianxhokaxhiu/README.md
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2

@cyrstem
cyrstem / nvmCommands.js
Created October 12, 2023 01:30 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node