Skip to content

Instantly share code, notes, and snippets.

View kimyongyeon's full-sized avatar
🏠
Working from home

bigboss kimyongyeon

🏠
Working from home
View GitHub Profile
🌞 Morning 3 commits ███▋░░░░░░░░░░░░░░░░░ 17.6%
🌆 Daytime 8 commits █████████▉░░░░░░░░░░░ 47.1%
🌃 Evening 3 commits ███▋░░░░░░░░░░░░░░░░░ 17.6%
🌙 Night 3 commits ███▋░░░░░░░░░░░░░░░░░ 17.6%
<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
<script type=text/javascript>
$(function() {
$('a#calculate').bind('click', function() {
$.getJSON($SCRIPT_ROOT + '/_add_numbers', {
a: $('input[name="a"]').val(),
b: $('input[name="b"]').val()
}, function(data) {
$("#result").text(data.result);
});
return false;
<script type=text/javascript>
$(function() {
$('a#calculate').bind('click', function() {
$.getJSON($SCRIPT_ROOT + '/_add_numbers', {
a: $('input[name="a"]').val(),
b: $('input[name="b"]').val()
}, function(data) {
$("#result").text(data.result);
});
return false;
<script type=text/javascript>
$(function() {
$('a#calculate').bind('click', function() {
$.getJSON($SCRIPT_ROOT + '/_add_numbers', {
a: $('input[name="a"]').val(),
b: $('input[name="b"]').val()
}, function(data) {
$("#result").text(data.result);
});
return false;
@kimyongyeon
kimyongyeon / ftp_upload.py
Created June 9, 2016 04:23 — forked from niceaji/ftp_upload.py
python-ftp파일업로드
#!/usr/bin/env python
import ftplib
ftp = ftplib.FTP('host','user','password')
fname = "업로드할 파일명(path포함가능"
full_fname = "로컬파일명(path포함가능)"
ftp.storlines('STOR '+ fname, open(full_fname, 'rb'))
ftp.quit()