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
#include "Square.h" | |
void Square::setup(int left,int top,int width,int height,ofColor color) | |
{ | |
this->left = left; | |
this->top = top; | |
this->width = width; | |
this->height = height; | |
this->color = color; | |
} |
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 | |
import pymongo | |
import datetime,time | |
token = "xoxp-your-token" | |
def main(): | |
client = pymongo.MongoClient("localhost", 27017) |
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
# __init__.py |
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
#ifndef __IGNIS_ARRAY__ | |
#define __IGNIS_ARRAY__ | |
#include<vector> | |
#include<array> | |
#include<iostream> | |
namespace ignis { | |
template<class ValueType> |
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
#include<iostream> | |
#include<string> | |
#include<boost/property_tree/ptree.hpp> | |
#include<boost/property_tree/json_parser.hpp> | |
#include<boost/optional.hpp> | |
/* input file | |
{ | |
"Level": | |
{ |
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
#pragma once | |
#include<type_traits> | |
namespace ignis { | |
namespace detail { | |
// ref) http://stackoverflow.com/questions/2910979/how-is-base-of-works | |
template<typename Base, typename Derived> |
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 python2 |
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 python2 | |
#vim:fileencoding=utf8 | |
import matplotlib | |
matplotlib.rcParams['backend'] = "Agg" | |
from StringIO import StringIO | |
import pylab as pl | |
import numpy as np | |
import sixel |