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
<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; |
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 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: |
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
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); |