Last update: 2015/01/17
1. install lastest Xcode with Mac App Store
xcode-select -p
if we do not have it, install it by
xcode-select --install
# config/routes.rb | |
YandexKassaIntegration::Application.routes.draw do | |
# ... | |
scope '/yandex_kassa' do | |
controller 'yandex_kassa', constraints: { subdomain: 'ssl' } do | |
post :check | |
post :aviso | |
get :success | |
get :fail |
Last update: 2015/01/17
xcode-select -p
if we do not have it, install it by
xcode-select --install
var cloneWithProps = React.addons.cloneWithProps; | |
var SmartSortable = React.createClass({ | |
getDefaultProps: function() { | |
return {component: "ul", childComponent: "li"}; | |
}, | |
render: function() { | |
var props = jQuery.extend({}, this.props); |
var gulp = require('gulp'); | |
var concat = require('gulp-concat-util'); | |
var through = require('through'); | |
var gutil = require('gulp-util'); | |
var refObj = {wallOfText: ''}; | |
function write(file) { | |
refObj.wallOfText += "/* " + file.path + " */" + gutil.linefeed; | |
this.emit('data', file); | |
} |
//* | |
//* See the JS Fiddle: http://jsfiddle.net/sxcjmoj5/3/ | |
//* | |
//* | |
// make sure ngSanitize module is installed: | |
// https://docs.angularjs.org/api/ngSanitize | |
// | |
// To convert links from plaintext, you must use the linky filter which is included with ngSanitize | |
// https://docs.angularjs.org/api/ngSanitize/filter/linky | |
// |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
matcher | aliased to | description |
---|---|---|
a_truthy_value | be_truthy | a truthy value |
a_falsey_value | be_falsey | a falsey value |
be_falsy | be_falsey | be falsy |
a_falsy_value | be_falsey | a falsy value |
upstream project { | |
server 22.22.22.2:3000; | |
server 22.22.22.3:3000; | |
server 22.22.22.5:3000; | |
} | |
server { | |
listen 80; | |
location / { |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
видео уже купили, кто хочет получить доступ, пишите сразу на hl@milushov.ru
видео за 2007-2013 года
Если разделить сумму на 10, то по 2.5к руб с носа, но можно больше.
#Error management in gulp
Sucking at something is the first step to becoming sorta good at something
No one can assure you, that plugins will run smooth in any circumstances (except for tests - they could), so neither should you convince anyone, that your plugin will never break. Only thing, that you could possibly do (if something gone wrong) - is gracefully inform your plugin user, that something went wrong and die.
We are will use this plugin from beginning to demonstrate error management. Suppose you have a task in gulpfile.js
that contains this code (we modified it a little bit to be closer to real-usage):
var coffee = require('gulp-coffee');