This file contains hidden or 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
| #include <iostream> | |
| auto main() -> int | |
| { | |
| NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
| NSURL *basePath = [NSURL URLWithString:@"path/to/directory"]; | |
| NSFileManager *fm = [NSFileManager defaultManager]; | |
| NSArray<NSString *> *files = [fm contentsOfDirectoryAtPath:[basePath absoluteString] error:nil]; |
This file contains hidden or 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
| ofVbo mHemisphere; | |
| void ofApp::setup() | |
| { | |
| const auto resolution_ = 256; | |
| const auto radius_ = 100.0; | |
| std::vector<ofVec3f> vertices_; | |
| for (auto i = 0; i < resolution_; ++i) |
This file contains hidden or 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
| #include "ofMain.h" | |
| class ofApp : public ofBaseApp | |
| { | |
| public: | |
| ofMesh mesh, ellipse; | |
| double scale = 200.0; | |
| //-------------------------------------------------------------- |
This file contains hidden or 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
| on run {argv} | |
| display dialog "Enter port number" default answer "8888" | |
| set targetPort to text returned of result | |
| tell application "Terminal" | |
| set currentTab to do script "cd " & (argv)'s POSIX path | |
| delay 1 | |
| do script "php -S localhost:" & targetPort in currentTab | |
| end tell | |
| end run |
This file contains hidden or 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
| #encoding: utf-8 | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'koala' | |
| access_token = 'my_holy_token' | |
| @graph = Koala::Facebook::API.new(access_token) |
This file contains hidden or 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
| var express = require('express') | |
| , osc = require('osc4node') | |
| , app = express.createServer() | |
| , port = process.env.PORT || 3000; | |
| app.configure(function() { | |
| app.use(app.router); | |
| }); | |
| app.get('/', function(req, res) { |
NewerOlder