This file contains hidden or 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
| ir_sensor <- hardware.pin2; | |
| ir_sensor.configure(DIGITAL_IN); | |
| led <- hardware.pin1; | |
| led.configure(DIGITAL_OUT, 0); | |
| ir_value <- 0; | |
| led_state <- 0; | |
| function poll() { |
This file contains hidden or 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> | |
| <body> | |
| <h1>It works!</h1> | |
| <select id="testbox" name="hoge" onchange="alert('test');"> | |
| </select> | |
| <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
| <script> |
This file contains hidden or 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
| # coding: utf-8 | |
| def main(): | |
| print(u"こんにちは、世界") | |
| if __name__ == '__main__': | |
| main() |
This file contains hidden or 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 | |
| STATE_OK=0 | |
| STATE_WARNING=1 | |
| STATE_CRITICAL=2 | |
| STATE_UNKNOWN=3 | |
| STATE_DEPENDENT=4 | |
| mysqlpath='/usr/bin' | |
| null="NULL" | |
| usage1="Usage: $0 -H <host> [-P <port>] -u <user> -p <password>" |
This file contains hidden or 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
| /* 霧の戦隊 大戦艦 ハルナ */ | |
| printf("total energy |E| of helium atom (eV) ? "); | |
| scanf("%lf", &E); | |
| for (i=1; i < 100 ;i++) { /* repeat until r1 = initial r1 + 100 */ | |
| /* poten = potential energy */ | |
| poten =-(2.0*Z*ele*ele)/(4.0*pai*epsi*r)+(ele*ele)/(4.0*pai*epsi*2.0*r); | |
| /* vya = total E-potential energy */ | |
This file contains hidden or 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
| // bit set / clear | |
| #ifndef cbi | |
| #define cbi(PORT, BIT) (_SFR_BYTE(PORT) &= ~_BV(BIT)) | |
| #endif | |
| #ifndef sbi | |
| #define sbi(PORT, BIT) (_SFR_BYTE(PORT) |= _BV(BIT)) | |
| #endif | |
| #define TIMER_PWM_PIN 3 | |
| #define TIMER_DISABLE_INTR (TIMSK2 = 0) |
This file contains hidden or 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 INPUT_PIN 8 | |
| #define LED_PIN 13 | |
| #define COUNT_NUM 512 | |
| unsigned int data[COUNT_NUM]; | |
| void setup() { | |
| pinMode(INPUT_PIN, INPUT); | |
| pinMode(LED_PIN, OUTPUT); | |
| Serial.begin(9600); |