Skip to content

Instantly share code, notes, and snippets.

View minhoryang's full-sized avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
import pkgutil
flask.config['CELERY_IMPORTS'] = [
package_name
for _, package_name, _ in pkgutil.walk_packages('.')
if package_name.startswith('api.tasks.')
]
@minhoryang
minhoryang / Warnings.xcconfig
Created February 8, 2017 16:32 — forked from steipete/Warnings.xcconfig
Did you knew that Clang Analyzer as alpha checkers? Early Christmas is here! (Ignore the rest... we run our PDF SDK https://pspdfkit.com with -Weverything because warnings are awesome to prevent bugs) - See https://gist.github.com/steipete/28849365e603dc2015c7107d85142e7b/revisions for a list of Xcode 8.3 changes
// clang -cc1 -analyzer-checker-help
// OVERVIEW: Clang Static Analyzer Checkers List
// USAGE: -analyzer-checker <CHECKER or PACKAGE,...>
//
// CHECKERS:
// alpha.core.BoolAssignment Warn about assigning non-{0,1} values to Boolean variables
// alpha.core.CallAndMessageUnInitRefArg
// Check for logical errors for function calls and Objective-C message expressions (e.g., uninitialized arguments, null function pointers, and pointer to undefined variables)
// alpha.core.CastSize Check when casting a malloc'ed type T, whether the size is a multiple of the size of T
// alpha.core.CastToStruct Check for cast from non-struct pointer to struct pointer
pip freeze | xargs pip uninstall -y
@minhoryang
minhoryang / gist:b7f591de4ff94981dc086649a6321cc7
Created January 21, 2017 17:11
"fatal error: 'openssl/hmac.h' file not found", If you are on macOS, please install openssl and check your OpenSSL configuration:
brew install openssl
export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
export DEP_OPENSSL_INCLUDE=`brew --prefix openssl`/include
@minhoryang
minhoryang / README.md
Created January 14, 2017 10:15 — forked from haje01/README.md
Distributed TensorFlow

λΆ„μ‚° ν…μ„œν”Œλ‘œμš°

이 글을 μž‘μ„±ν•˜λŠ” μ‹œμ (2017-01-11)μ—μ„œ λΆ„μ‚° ν…μ„œν”Œλ‘œμš°μ˜ κ΄€λ ¨ 자료 λΆ€μ‘±μœΌλ‘œ ν™•μ‹€νžˆ λΆ„μ‚° ν•™μŠ΅μ΄ λ˜λŠ”μ§€ 확인이 λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€. μ•ˆνƒ€κΉμ§€λ§Œ λ³Έ λ‚΄μš©μ€ 참고만 ν•˜μ‹œκΈ° λ°”λžλ‹ˆλ‹€.

원문 [https://www.tensorflow.org/how_tos/distributed/] (https://www.tensorflow.org/how_tos/distributed/)

κ°œλ… μ„€λͺ…

  • ν΄λŸ¬μŠ€ν„°λŠ” ν…μ„œν”Œλ‘œμš° κ·Έλž˜ν”„μ˜ λΆ„μ‚° μˆ˜ν–‰μ— μ°Έμ—¬ν•˜λŠ” ν…ŒμŠ€ν¬λ“€μ˜ μ§‘ν•©
@minhoryang
minhoryang / angular-cli.1.0.0-beta.21.package.json
Last active March 7, 2017 08:58
Angular2 & Angular-cli Well-Shrinkwrapped `package.json` Versions.
{
"//": [
"@angular/* should be 2.2.1, not 2.2.3(latest at that time) caused by @ngtools/[email protected] > [email protected] (#3295)",
"zone.js should be ^0.6.23, not ^0.7.2(latest at that time) caused by @angular/[email protected] (#13022)",
"tslint should be ^3.15.1, not ^4.0.2(latest at that time) caused by [email protected] > [email protected] (#3304)",
],
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/core": "2.2.1",
@minhoryang
minhoryang / config.yaml
Created December 19, 2016 07:50
verdaccio/verdaccio
#
# This is the default config file. It allows all users to do anything,
# so don't use it on production systems.
#
# Look here for more config file examples:
# https://github.com/rlidwka/sinopia/tree/master/conf
#
# path to a directory with all packages
storage: /verdaccio/storage
@minhoryang
minhoryang / bitbucket-pipelines.yml
Last active January 6, 2017 19:09
Do It Right) npm-shrinkwrap
# This is a sample build configuration for Javascript.
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:6
pipelines:
default:
- step:
script:
@minhoryang
minhoryang / README.md
Created November 21, 2016 11:21
[TODO] iTerm2 Terminal Logs -> asciinema