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
#!/bin/bash | |
############################################################ | |
# init helpers | |
############################################################ | |
# helper to source file if it exists and is not zero in size | |
function source_if_exists() { | |
for arg in $@; do | |
if [[ -s $arg ]]; then | |
if_debug_echo $arg | |
source $arg |
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
############################################################ | |
# aliases | |
############################################################ | |
alias ls='ls --color=auto' | |
alias l='ls -CF' | |
alias la='ls -a' | |
alias ll='ls -lkh' | |
alias lla='ll -a' | |
alias lrt='ll -rt' | |
alias lrta='lrt -a' |
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
trans_tags = db.Table('trans_tags', | |
db.Column('history_id', db.Integer, db.ForeignKey('trans_history.id')), | |
db.Column('tag_id', db.Integer, db.ForeignKey('trans_tag.id')), | |
) | |
class TransHistory(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
datetime = db.Column(db.DateTime) | |
conductor = db.Column(db.String(20)) | |
tags = db.relationship('TransTag', secondary = 'trans_tags', backref = 'describes') |
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
configFish <- catchIOError (B.readFile configFishPath) | |
(\ e -> if isDoesNotExistError e | |
then do | |
B.writeFile configFishPath B.empty | |
return "" | |
else ioError e) |
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
/Users/nobell/workspace/haskell-study/week7/HW07.hs:68:13: | |
No instance for (MonadRandom Vector) | |
arising from a use of ‘getRandomR’ | |
In a stmt of a 'do' block: victim <- getRandomR (0, i) | |
In the expression: | |
do { victim <- getRandomR (0, i); | |
(unsafeSwapV i victim v) } | |
In an equation for ‘shuffleStep’: | |
shuffleStep v i | |
= do { victim <- getRandomR (0, i); |
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 re | |
from hjlog import db | |
from hjlog.models import Post | |
S3_BASE_URL = 'https://s3.ap-northeast-2.amazonaws.com/hjlog-photos/' | |
pattern = re.compile('!\[(.*)\]\(/static/image/photo/(.*)\)') | |
def repl(m): |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+3", | |
"command": "editor.action.goToDeclaration", | |
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" | |
}, | |
{ | |
"key": "cmd+4", | |
"command": "workbench.action.navigateBack" |
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
# .travis.yml | |
language: generic | |
env: | |
- FLUTTER_BUILD_RELEASE_CHANNEL=stable # 사용할 빌드 릴리즈 채널 | |
matrix: | |
include: | |
- name: iOS Build | |
os: osx |
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
우하하 |
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
{"version":1,"resource":"file:///Users/heejong/workspace/flex-landing-page/src/pages-inner/home/TimeTrackingSection/index.tsx","entries":[{"id":"jbwT.tsx","timestamp":1651213027946}]} |
OlderNewer