ofDirectory dir(_path);
if(dir.exists()){
dir.listDir();
int total = dir.getFiles().size();
for (int i = 0; i < total; i++) {
cout << "Loading " << dir.getName(i) << endl;
}
}
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
// Resources | |
// - http://blog.packagecloud.io/debian/debuild/packaging/2015/06/08/buildling-deb-packages-with-debuild/ | |
// - https://linuxconfig.org/easy-way-to-create-a-debian-package-and-local-package-repository | |
// - http://santi-bassett.blogspot.com/2014/07/how-to-create-debian-package.html | |
sudo apt-get install dh-make build-essential | |
sudo apt-get install devscripts fakeroot debootstrap pbuilder autotools-dev | |
# Create the packaging skeleton (debian/*) | |
# dh_make -s --indep --createorig |
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
<!doctype html> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<title>Territory</title> | |
<!-- 3rd party libraries --> | |
<!-- Leaflet --> |
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
```glsl | |
float mix4smoothstep(float a, float b, float c, float d, float x ) { | |
return mix(mix(a,b,smoothstep(0.,.33,x)), | |
mix(b, | |
mix(c,d,smoothstep(.66,.99,x)), | |
smoothstep(.33,.66,x)), | |
step(.33,x)); | |
} | |
float mix4linear(float a, float b, float c, float d, float x ) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
sudo yum update -y | |
# Install packages | |
sudo yum install -y httpd24 mod24_ssl php56 mysql55-server php56-mysqlnd | |
# Start the Apache web server | |
sudo service httpd start |
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
#!/usr/bin/env python | |
import requests, json, sys | |
import geojson | |
#six degrees of precision in valhalla | |
inv = 1.0 / 1e6; | |
#decode an encoded string | |
def decode(encoded): |
ofBuffer buffer = ofBufferFromFile(_file);
while(!buffer.isLastLine()) {
string temp = buffer.getNextLine();
if(temp.length() != 0) {
vector<string> values = ofSplitString(temp, ",");
// ofToInt(value[0]);
ofAppGlutWindow window;
#if defined (TARGET_OSX)
window.setGlutDisplayString("rgba double samples>=4 depth");
#endif
ofSetupOpenGL(&window, 1280,1024, OF_WINDOW);