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
"\e\e[D": backward-word | |
"\e\e[C": forward-word |
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
set -g mouse on | |
setw -g mode-keys vi | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D |
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
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status |
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 smtplib | |
host = "junho85.pe.kr" | |
port = 2525 | |
fromaddr = "abc@test.com" | |
toaddr = "sometest@daum.net" | |
lmtp = smtplib.LMTP(host, port) | |
lmtp.set_debuglevel(1) |
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
use HTTP::Tiny; | |
use JSON; | |
my $ua = HTTP::Tiny->new(); | |
my $somehash->{"somekey"} = { | |
ip => "111.111.111.111" | |
}; | |
my $url = "http://testurl.com:8080/api/test"; |
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
#include <LiquidCrystal.h> | |
// HC-SR04 pins | |
int trigPin = 12; | |
int echoPin = 13; | |
// Keypad Shield LCD | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); | |
void setup() { |
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
#include <Ultrasonic.h> | |
Ultrasonic ultrasonic(12, 13); | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.print("Distance in CM: "); |
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 trigPin = 12; | |
int echoPin = 13; | |
void setup() { | |
Serial.begin(9600); | |
// trig를 출력모드로 설정, echo를 입력모드로 설정 | |
pinMode(trigPin, OUTPUT); | |
pinMode(echoPin, INPUT); | |
} |
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
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // for lcd keypad shield | |
#define btnRIGHT 0 | |
#define btnUP 1 | |
#define btnDOWN 2 | |
#define btnLEFT 3 | |
#define btnSELECT 4 | |
#define btnNONE 5 |
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
/* Modified slightly to work with the LCD Keypad Shield. | |
* Original - http://www.instructables.com/id/Arduino-LCD-Game/ | |
*/ | |
#include <LiquidCrystal.h> | |
#define SPRITE_RUN1 1 | |
#define SPRITE_RUN2 2 | |
#define SPRITE_JUMP 3 | |
#define SPRITE_JUMP_UPPER '.' // Use the '.' character for the head | |
#define SPRITE_JUMP_LOWER 4 |