Инструмент для дизайна, вёрстки и тестовой отправки писем
gulp, coffescript, jade, stylus
// macOS: Cmd + Shift + P -> Preferences: Open Keyboard Shortcuts (JSON) | |
// Windows: Ctrl + Shift + P -> Preferences: Open Keyboard Shortcuts (JSON) | |
[ | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.createTerminalEditor", | |
"when": "!terminalFocus" | |
}, | |
{ |
import React from 'react'; | |
const UiState = { | |
loading: 'loading', | |
ready: 'ready' | |
} as const; | |
type UiState = typeof UiState[keyof typeof UiState]; | |
const stateList: Record<UiState, React.ReactNode> = { |
Инструмент для дизайна, вёрстки и тестовой отправки писем
gulp, coffescript, jade, stylus
class Course < ActiveRecord::Base | |
include FriendlyId | |
include Bootsy::Container | |
validates :title, :publicated_at, presence: true | |
before_validation :set_publicated_at | |
has_and_belongs_to_many :cities | |
belongs_to :language |
https://github.com/sibsfinx/sibsfinx.github.io
Простой скрипт для деплоя сайта с Webflow на Github Pages (nodejs tooling)
@keyframes star | |
0% | |
opacity: 0 | |
50% | |
opacity: 1 | |
100% | |
opacity: 0 | |
@keyframes star-glow | |
0% |
# list disks: | |
diskutil list | |
# use disk name from the listed isntead of disk3 | |
# unmount your external drive: | |
diskutil unmountDisk force disk3 | |
# format in HFS with the name you want: | |
diskutil partitionDisk disk3 GPT JHFS+ "Drive Name" 0g |
// need to execute a chain of promises (using then()) | |
// and make/call a function that will return a value (not a promise object) | |
p = (fn) => { | |
return new Promise((resolve, reject) => { | |
setTimeout( () => { | |
resolve(fn.call()); | |
}, 1000); | |
}); | |
}; |
This script is pulling files from username@hostname:/*
to /
on the current server.
So you need to ssh to the target server and and run it.
Tested when migrating between two DigitalOcean droplets a while ago.
{ | |
"directory" : "vendor/assets/components", | |
"json" : "bower.json" | |
} |