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
// код для встраивания на страницу car.ru | |
// используется chrome extension https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
var buttonsHTML = ( | |
'<p><button onclick="widget.expand()">Expand</button> <button onclick="widget.collapse()">Collapse</button></p>'+ | |
'<p>'+ | |
'<button onclick="widget.requestForQuote({presets: {carMake: \'BMW\', services: [85702, 52658]}})">Заказать диагностику BMW - button onclick</button>'+ | |
'<a href="#" class="js-activate-mymechanic" data-car-make="Ford" data-car-model="Focus" data-service-area="Москва" data-services="[85702, 52658]">ТО для Ford Focus в Москве - auto bind</a>'+ | |
'<button class="js-activate-mymechanic" data-car-make="Ford" data-car="Toyota Camry 2010">ремонт Toyota Camry 2010 - auto bind with car info as a string</button>'+ | |
'<button class="js-activate-mymechanic">Предпродажный осмотр</button>'+ |
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" /> |
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
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
// структура каталогов проекта | |
// 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
<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
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
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
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
# 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 |
OlderNewer