Skip to content

Instantly share code, notes, and snippets.

View pierdr's full-sized avatar

Pierluigi Dalla Rosa pierdr

View GitHub Profile
//Import Javascript core
import JavaScriptCore
//[...]
//Get the JS Context
let context = JSContext()!
//write your function in javascript and feed it to context
context.evaluateScript(#"""
@avinashselvam
avinashselvam / filter.swift
Created June 19, 2019 11:15
A swift class that implements GPU based image processing
//
// filter.swift
// fltr
//
// Created by Avinash on 18/06/19.
// Copyright © 2019 eightyfive. All rights reserved.
//
import Metal
import MetalKit
@wtshm
wtshm / ofApp.cpp
Created March 22, 2016 05:20
GCD on openFrameworks
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
string str = "";
void setup() {
ofBackground(0);
ofSetFrameRate(60);
ofSetVerticalSync(true);
@companje
companje / globe.cpp
Created September 24, 2014 13:31
getting Longitude/Latitude when clicking on a rotated sphere
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
ofImage earth;
ofQuaternion qTo;
float angle;
ofVec3f axis;
ofPoint green;
@ryanchang
ryanchang / lldb_cheat_sheet.md
Last active July 23, 2024 14:39
LLDB Cheat Sheet

LLDB Cheat Sheet

A complete gdb to lldb command map.

Print out

  • Print object
(lldb) po responseObject
(lldb) po [responseObject objectForKey@"state"]
  • p - Print primitive type
@rc1
rc1 / OSX Example
Last active April 11, 2024 18:50
Command line arguments in openFrameworks
open -n ./emptyExampleDebug.app/ --args 1 2 3 4
@wolever
wolever / MIT-LICENSE.txt
Last active June 1, 2022 05:42 — forked from niw/MIT-LICENSE.txt
Put a mac's AirPort in HostAP mode. Updated to work with OS X 10.8.
Copyright (C) 2012 Yoshimasa Niwa
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: