Skip to content

Instantly share code, notes, and snippets.

int main(void) {
SwitchMatrix_Init();
GPIOInit();
GPIOSetDir( 0, 0, 1 );
GPIOSetDir( 0, 2, 1 );
if(LPC_PMU->PCON & (1 << 11)) {
// DPDFLAG(11)が立ってるので、deep power-downからの復帰である。
// 同フラグをクリア
LPC_PMU->PCON &= ~(1 << 11);
/*
===============================================================================
Name : TestSleep.c
Author : $(author)
Version :
Copyright : $(copyright)
Description : main definition
===============================================================================
*/
@akimasa
akimasa / gist:5840717
Last active December 18, 2015 20:29
EpisoPassのパスワードの候補を全部コンソールに吐き出すコード。 使うときは パスワード生成ページを保存して、最後の方の</script>前に投入
console.log($("#pass").val());
ansmax = [];
answer = [];
for(j=0;data.qas.length>j;j++){
ansmax[j]= data.qas[j].answers.length-1;
answer[j]=0;
}
outer:
for(;;){
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=polling
RewriteRule /(.*)$ http://localhost:3000/$1 [P]
ProxyRequests off
ProxyPass /socket.io/socket.io.js http://localhost:3000/socket.io/socket.io.js
ProxyPassReverse /socket.io/socket.io.js http://localhost:3000/socket.io/socket.io.js
ProxyPass /socket.io/ ws://localhost:3000/socket.io/
ProxyPassReverse /socket.io/ ws://localhost:3000/socket.io/