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
# updated to https://github.com/PokemonGoF/PokemonGo-Bot/commit/0c3c4c004d5081b91ffe278850d1b1821e4f63b4 | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from pokemongo_bot.base_task import BaseTask | |
from pokemongo_bot.worker_result import WorkerResult | |
from pokemongo_bot.constants import Constants | |
from pokemongo_bot.cell_workers.utils import fort_details, distance | |
from pokemongo_bot.cell_workers.pokemon_catch_worker import PokemonCatchWorker |
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
# updated to https://github.com/PokemonGoF/PokemonGo-Bot/commit/0c3c4c004d5081b91ffe278850d1b1821e4f63b4 | |
import json | |
import os | |
from pokemongo_bot.base_task import BaseTask | |
from pokemongo_bot.cell_workers.pokemon_catch_worker import PokemonCatchWorker | |
from utils import distance | |
from pokemongo_bot.worker_result import WorkerResult | |
from pokemongo_bot.base_dir import _base_dir |
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
# -*- coding: utf-8 -*- | |
import time | |
from random import random, randrange | |
from pokemongo_bot import inventory | |
from pokemongo_bot.base_task import BaseTask | |
from pokemongo_bot.human_behaviour import sleep, action_delay | |
from pokemongo_bot.inventory import Pokemon | |
from pokemongo_bot.worker_result import WorkerResult |
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 re | |
from termcolor import colored | |
import collections | |
def s_fun(p): | |
n = len(p) | |
s = ' ' + i + ' (' + str(n) + '): ' | |
l = '' | |
if n > 3: | |
p = p[:3] |
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
# updated to https://github.com/PokemonGoF/PokemonGo-Bot/commit/0c3c4c004d5081b91ffe278850d1b1821e4f63b4 | |
import json | |
import os | |
from pokemongo_bot import inventory | |
from pokemongo_bot.human_behaviour import action_delay | |
from pokemongo_bot.base_task import BaseTask | |
from pokemongo_bot.inventory import Pokemons |
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
ntrees = 2; % number of trees | |
ratios = 1; %ratio | |
global min_sample; | |
min_sample = 2; % minimum number of samples/pixels | |
global max_depth; | |
max_depth = 15; % maximum depth | |
global num_sample; | |
num_sample = 10; % total number of samples/pixels | |
global num_image; | |
num_image = 10; % total number of samples/pixels |
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 <stdlib.h> | |
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
#ifdef __APPLE__ | |
#include <OpenCL/opencl.h> | |
#else | |
#include <CL/cl.h> |
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 Livermorec_hydro_fragment_soap(__global float* x, __global float* y, __global float* z){ | |
int i = get_global_id(0); | |
int j = get_global_id(1); | |
int k = get_global_id(2); | |
int index = i + j * 2048 + k * 2048; | |
//int index = i + j*width +k*width*height; | |
x[index] = y[index] + z[index]; | |
/* |
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 os | |
path = "C:\downloads" | |
keyword=".cl" | |
merged_file_name="merged_file"+keyword | |
def backtrace(path, l, content, suffix): | |
for i in l: | |
path_i=path+"\\"+i | |
print path_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
//=================== | |
__kernel void Livermorec_hydro_fragment(__global float* x, __global float* y, __global float* z, int loop, float r, float t, float q){ | |
#pragma SOAP loop=10 | |
int l = 0; | |
for (l = 0; l < loop; l = l + 1) { | |
int k = get_global_id(0); | |
x[k] = q + y[k] * (r*z[k + 10] + t*z[k + 11]); | |
} | |
#pragma SOAP return x |
NewerOlder