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
> "5" - 3 | |
2 | |
> "5" + 3 | |
"53" // почему ?! | |
>'5' + + '3' | |
"53" // кажется, здесь все логично | |
> '5' + - '3' | |
"5-3" // ан нет | |
> 'foo' + + 'foo' |
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
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines without a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = false | |
[*] | |
trim_trailing_whitespace = true |
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
from livereload import Server | |
def make_site(): | |
# TODO convert markdown to html, create site | |
if __name__ == '__main__': | |
server = Server() | |
server.watch('templates/*.html', make_site) | |
# TODO watch for changes in markdown articles | |
server.serve(root='site/') # folder to serve html files from |
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
data-reactid="[\d\.\$]+" |
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 os | |
basedir = os.path.abspath(os.path.dirname(__file__)) | |
DEBUG = False | |
DEVELOPMENT = False | |
TESTING = False | |
CSRF_ENABLED = False | |
SECRET_KEY = '' | |
SQLALCHEMY_DATABASE_URI = '' | |
SQLALCHEMY_TRACK_MODIFICATIONS = 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
<script> | |
function onYouTubeIframeAPIReady() { | |
$modal.on('show', function(){ | |
new YT.Player('player', { | |
height: '360', | |
width: '640', | |
videoId: 'M7lc1UVf-VE', | |
events: { | |
'onReady': onPlayerReady, | |
} |
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
// структура каталогов проекта | |
// test_assets: | |
// congratulation.png | |
// person-min.png | |
// person.png | |
// ... | |
// svg-icons | |
// arrow-down.svg | |
// .... | |
// fonts |
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 {Base404Error, Order404} from './exceptions.js' | |
import './order404.tag.html' | |
import './page404.tag.html' | |
export const handler = func => function*(...args){ | |
try { | |
return yield* func(...args) | |
} catch(error) { | |
if (!(error instanceof Base404Error)) |
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
let submitSaga = decorate( | |
_.partial(catchFormErrors, formStore), | |
preloader.createPreloaderWrapper(formStore), | |
function*(){ | |
yield* credentials.CredentialsFormSubmitter(inputs) | |
formStore.dispatch({type: 'SUBMITTED'}) | |
}, | |
) | |
yield* submitSaga() |
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
<input type="file" name="file" accept="image/*" capture="camera" /> |