- 간단한 화면 렌더링하기 (
#9cee64b
)- 빌드: webpack src/main.jsx dist/bundle.js --module-bind 'jsx=babel-loader?presets=react'
- webpack으로 빌드
#5542b96
- webpack-dev-server --inline --hot으로 빌드
#26c5c639
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
# One-liner tsconfig generator bash function | |
# inspired by https://stackoverflow.com/a/60950355/1405998 | |
# Usage: | |
# tsc -p $(ts_extend "src/temp.ts") --outDir dist | |
function ts_extend() { | |
local includeFile=$1 | |
TS_IIFE_CONFIG=.tsconfig-extend.json | |
echo '{ "extends": "./tsconfig.json", "include": ["'${includeFile}'"] }' > $TS_IIFE_CONFIG |
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
-- get photo filename that has matching name | |
SELECT | |
ZA.Z_PK,ZA.ZORIGINALFILENAME,ZA.ZEXIFTIMESTAMPSTRING | |
FROM | |
ZADDITIONALASSETATTRIBUTES AS ZA, | |
ZDETECTEDFACE AS ZDF, | |
ZPERSON AS ZP | |
WHERE | |
ZP.ZDISPLAYNAME = 'YOUR NAME HERE' AND |
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
var HelloModal = React.createClass({ | |
render: function() { | |
console.log('HelloModal#render', this.props.visible); | |
var modal_classes = (this.props.visible) ? | |
'ui small modal transition visible active' : | |
'ui small modal transition hidden'; | |
return ( | |
<div className={modal_classes}> | |
<div className="ui center aligned header">Hello</div> | |
<div className="content"> |
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
describe Flying, -> | |
it 'receives a constructor function and returns one.', -> | |
Superman = Flying(Human) | |
expect(Superman).to.be.a(Function) | |
it "calls the target class's constructor on init", -> | |
# mock Human | |
man_is_called = false |
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
<!-- app/views/posts/_post.html.erb --> | |
<article> | |
<header> | |
<p><time pubdate="pubdate"><%= post.pubdate %></time></p> | |
<h3><%= post.title %></h3> | |
<div class="entry_tags">Tags: | |
<%= post.tags.render(self) %> | |
</div> | |
</header> | |
<%= post.render_body(self) %> |
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 django.test.simple as dj_test | |
from django.test.simple import unittest | |
class ModuleTestSuiteRunner(dj_test.DjangoTestSuiteRunner): | |
def build_suite(self, test_labels, extra_tests=None, **kwargs): | |
suite = unittest.TestSuite() | |
if test_labels: | |
for label in test_labels: | |
if '.' in label: |
NewerOlder