Инструмент для дизайна, вёрстки и тестовой отправки писем
gulp, coffescript, jade, stylus
Инструмент для дизайна, вёрстки и тестовой отправки писем
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" | |
} |
'use strict'; | |
import path from 'path'; | |
import awspublish from 'gulp-awspublish'; | |
import parallelize from 'concurrent-transform'; | |
import keys from 'config/keys.js' | |
export default function(gulp, plugins, args, config) { | |
let dirs = config.directories; | |
let build = dirs.destination; |
window.Gallery ||= {} | |
((app) -> | |
$(document).ready -> | |
$pswpElement = $('.pswp')[0] | |
$pswpCollection = $('@pswp-collection') | |
$pswpCollection.each -> | |
collection = $(@) | |
$pswpLinks = collection.find('[role*="pswp-link"]') | |
$pswpLinks.on 'click', (e) -> |