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
/************************** | |
* Html form with hidden data called csv_hdr and csv_output. | |
*********************************/ | |
$(document).ready(function(){ | |
$("#btn_challenge_score_details").click(function (){ | |
var csv_hdr = $("#csv_hdr").val(); | |
var csv_output = $("#csv_output").val(); | |
var dataString = 'csv_hdr='+ csv_hdr + '&csv_output=' + csv_output; | |
//alert (dataString); return false; |
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
#!/bin/sh | |
# if Xcode , need to install Command Line Tools From Xcode | |
# 初期設定 | |
WORK=$HOME/Builds/build-essential | |
PREFIX=$HOME/local | |
export PATH="$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
# check Build Dir Exist or not | |
if [ ! -d $HOME/Builds ] ; then |
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
sudo /etc/init.d/xbmc stop #default password = 'raspberry' | |
sudo su #default password = 'raspberry' | |
echo "/opt/vc/lib" > /etc/ld.so.conf.d/00-vmcs.conf | |
ldconfig | |
sudo chown xbian:xbian .xbmc/userdata/sources.xml | |
sed -i 's/gpu_mem_256=100/gpu_mem_256=128/g' /boot/config.txt | |
sed -i 's/gpu_mem_512=100/gpu_mem_512=128/g' /boot/config.txt |
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
<?php | |
function sign_bcdn_url($url, $securityKey, $expiration_time = 3600, $user_ip = NULL, $is_directory_token = false, $path_allowed = NULL, $countries_allowed = NULL, $countries_blocked = NULL) | |
{ | |
if(!is_null($countries_allowed)) | |
{ | |
$url .= (parse_url($url, PHP_URL_QUERY) == "") ? "?" : "&"; | |
$url .= "token_countries={$countries_allowed}"; | |
} | |
if(!is_null($countries_blocked)) |