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> | |
<head> | |
<style> | |
/* ROLL LINKS */ | |
.roll-link { | |
display: inline-block; | |
overflow: hidden; | |
vertical-align: top; |
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
//Add -ar/-ir | |
adapt - adaptar | |
adjust - ajustar | |
admit - admitir | |
adopt - adoptar | |
affect - afectar | |
augment - aumentar | |
comment - comentar | |
comport - comportar | |
consult - consultar |
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
<? | |
function k($word, $api) | |
{ | |
$str = file_get_contents("https://maps.googleapis.com/maps/api/place/textsearch/xml?query=$word&sensor=true&key=$api"); | |
$obj = simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA); | |
$result = $obj->result; | |
$n = count($result); | |
for ($c = 0; $c < $n; $c++) { |
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
<meta http-equiv="refresh" content="10"> <?// refresh page in 10 seconds?> | |
<? | |
function k() | |
{ | |
$i = file_get_contents("count"); | |
$arr = "http://www.allinlondon.co.uk/restaurants/restaurant-$i.php"; // URL target | |
if (($i <= 5183 || $i >= 7183) && $i < 18026) { // 5182~7182 are 404 pages | |
echo $i; // for testing | |
echo "<br>" . (floor(($i / 18026) * 10000) / 100) . "%"; // for testing |
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
<meta http-equiv="refresh" content="1"> | |
<? | |
$arr = array( | |
"WHERE ARE WE NOW DAVID BOWIE", | |
"NOT A SAINT VATO GONZALEZ VS LETHAL BIZZLE", | |
"LIGHTNING BOLT JAKE BUGG" | |
); | |
$l = count($arr); | |
$i = file_get_contents("count.txt"); // store the position | |
echo $i . "/" . $l; |
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
import paramiko | |
import subprocess | |
import re | |
import sys | |
from timeit import Timer | |
#set username & password | |
hostname = '1.1.1.1' | |
username = '??' | |
password = '??' |
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
import subprocess | |
from timeit import Timer | |
args = ("./a.out") | |
output = False | |
def timing(): | |
popen = subprocess.Popen(args, stdout=subprocess.PIPE) | |
popen.wait() | |
return |
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
//=================== | |
__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 |
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
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 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]; | |
/* |
OlderNewer