Skip to content

Instantly share code, notes, and snippets.

View iesta's full-sized avatar

Goom JM iesta

View GitHub Profile
<div id="luckyleaderboard"></div>
<style>ul.luckywinners {
list-style-type: none;
padding-left:0px;
}
ul.luckywinners li {
border: #dddddd 1px solid;
padding: 10px;
margin-bottom: 4px;
padding-left:0px;
@huw
huw / runes.py
Last active March 16, 2024 00:42
import string
def find_position(char):
for set_num in range(len(table)):
if char in table[set_num]:
return set_num
return False
def forge_offsets(key, direction, offset):
if type(key) is str:
@iesta
iesta / gist:9ac5701062f018bb93a5
Last active August 29, 2015 14:01
Example of use of luckycycle php lib to access api
require_once dirname(__FILE__).'/luckysdk/lucky.php';
// get API keys on https://www.luckycycle.com
$url = 'https://www.luckycycle.com';
$api_key = 'XXXXXXXXXXXXXXXX';
$op = 'XXXXXXXXXXXXXXX';
$req = new LuckyCycleApi($url);
$req->setApiKey($api_key);