- echo
- date
- sleep
- mkdir
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
| # imports | |
| import BBP | |
| import numpy | |
| import random | |
| import time | |
| import wx | |
| from math import pi, sqrt, log10 | |
| from deap import base | |
| from deap import creator | |
| from deap import tools |
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 <stdio.h> | |
| #include <omp.h> | |
| int main(int argc, char *argv[]) { | |
| const int N = 1000; | |
| unsigned int i, a[N+10]; | |
| unsigned int j; | |
| for (j = 0; j < 100; j++) { | |
| #pragma omp parallel for num_threads(4) |
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
| import operator | |
| import math | |
| import random | |
| import ctypes | |
| from functools import reduce | |
| import numpy | |
| from deap import algorithms | |
| from deap import base |
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
| # Mostly stolen from deap's symbreg GP example | |
| import operator | |
| import math | |
| import random | |
| import string | |
| import inspect | |
| import ctypes | |
| import numpy | |
| from scipy import optimize |
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 "simpleCL.h" | |
| int main() { | |
| char buf[]="Hello, World!"; | |
| size_t global_size[2], local_size[2]; | |
| int found, worksize; | |
| sclHard hardware; | |
| sclSoft software; | |
| // Target buffer just so we show we got the data from OpenCL |
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
| __kernel void example( __global char* buf, __global char* buf2 ){ | |
| int x = get_global_id(0); | |
| buf2[x] = buf[x]; | |
| } |
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
| float Q_rsqrt( float number ) | |
| { | |
| long i; | |
| float x2, y; | |
| const float threehalfs = 1.5F; | |
| x2 = number * 0.5F; | |
| y = number; | |
| i = * ( long * ) &y; // evil floating point bit level hacking | |
| i = 0x5f3759df - ( i >> 1 ); // what the fuck? |
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 <libexif/exif-data.h> | |
| #include <opencv2/photo.hpp> | |
| #include <opencv2/highgui.hpp> | |
| #include <vector> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <dirent.h> | |
| using namespace cv; | |
| using namespace std; |
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
| """ | |
| File name: gp_from_string_fix.py | |
| Author: Thomas Macrina | |
| Date created: 04/15/2014 | |
| Python Version: 2.7 | |
| Simple DEAP strongly-typed GP setup to demonstrate | |
| difficulties with ephemerals and scoop. | |
| """ |