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
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/ |
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
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(;;){ |
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
/* | |
=============================================================================== | |
Name : TestSleep.c | |
Author : $(author) | |
Version : | |
Copyright : $(copyright) | |
Description : main definition | |
=============================================================================== | |
*/ |
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
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); |
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
int main(void) { | |
SwitchMatrix_Init(); | |
GPIOInit(); | |
GPIOSetDir( 0, 0, 1 ); | |
GPIOSetDir( 0, 2, 1 ); | |
if(LPC_PMU->PCON & (1 << 11)) { | |
LPC_PMU->PCON |= (0x1<<11); | |
LPC_WKT->CTRL |= WKT_CLR; | |
NVIC_ClearPendingIRQ(WKT_IRQn); |
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
#define _LARGEFILE_SOURCE | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifdef _WIN32 | |
#include <io.h> | |
#include <fcntl.h> | |
#endif |
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
SRC=blink_led.c | |
CC=sdcc | |
FAMILY=pic14 | |
PROC=12lf1822 | |
all: $(SRC:.c=.hex) | |
$(SRC:.c=.hex): $(SRC) | |
$(CC) --use-non-free -m$(FAMILY) -p$(PROC) $^ |
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
### Keybase proof | |
I hereby claim: | |
* I am akimasa on github. | |
* I am akimasa (https://keybase.io/akimasa) on keybase. | |
* I have a public key whose fingerprint is BAC6 E1F4 7217 29B5 B59C A8D0 1392 2B59 31CC E0F1 | |
To claim this, I am signing this object: |
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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"sync" | |
) | |
var mutex *sync.Mutex |
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
ircomp1 (){ | |
local list1 | |
list1=$(irsend list '' '' 2> >(sed 's/irsend: //g')) | |
case "$COMP_CWORD" in | |
1 ) | |
COMPREPLY=( $(compgen -W "send_once send_start send_stop list set_transmitters simulate" $2) );; | |
2 ) | |
COMPREPLY=( $(compgen -W "$list1" $2) );; | |
3 ) | |
COMPREPLY=( $(compgen -W "$(irsend list "$3" '' 2> >(cut -f1 -d " ") | cut -f2 -d ' ')" $2) );; |
OlderNewer