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
//http://nodecellar.coenraets.org/ | |
//util.js | |
window.utils = { | |
// Asynchronously load templates located in separate .html files | |
loadTemplate: function(views, callback) { | |
var deferreds = []; |
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
grep version package.json | sed 's/.*: "\(.*\)".*/\1/' |
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/bash | |
function wait_for() { | |
until $1; do | |
echo $2 | |
sleep $3 | |
done | |
} |
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
def file_put_content(filename, content): | |
f = open(filename, 'w') | |
f.write(content) | |
f.close() | |
def file_get_contents(filename): | |
return open(filename).read() |
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
#!/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() |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
for root, dirs, files in os.walk('folder/path'): | |
for fname in files: | |
full_fname = os.path.join(root, fname) | |
print full_fname |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<title>untitled</title> | |
<link rel="stylesheet" href="" /> | |
</head> | |
<body> |
NewerOlder