A simple dictation robot.
echo 'Přečti mi něco, prosím!' | ruby dictator.rb
cat data.txt | ruby dictator.rb
cat data.txt | SPEED=1.5 ruby dictator.rb
# If you are using ActiveRecord and want to paginate it you have to write this: | |
# PeacefulPaginate.use_for_active_record! | |
# to end of your config/environment.rb | |
# If you want to override default .paginate method from WillPaginate gem you have to insert this | |
# PeacefulPaginate.use_compatible_mod_with_will_paginate! | |
# to end of your config/environment.rb | |
# With this you dont have to rewrite nothing else in your application | |
# In other way how to use it |
// TODO: Automatically create a useful isEqual function. | |
function valueObject() { | |
var names = arguments; | |
function wrapped() { | |
var o = this instanceof wrapped ? this : {}, i; | |
if(arguments.length != names.length) { | |
throw new TypeError("Expected " + names.length + " arguments, got " + arguments.length); | |
} | |
for(i = 0; i < names.length; i++) { | |
o[names[i]] = arguments[i]; |
// Boilerplate | |
function objectUnion(definer) { | |
var defined = 0, length = 0, isDefined = false, definitions, key; | |
definitions = definer(function() { | |
var names = arguments, fold; | |
if(isDefined) { | |
throw new TypeError('This objectUnion has already been defined'); | |
} | |
function Ctor() {} |
A simple dictation robot.
echo 'Přečti mi něco, prosím!' | ruby dictator.rb
cat data.txt | ruby dictator.rb
cat data.txt | SPEED=1.5 ruby dictator.rb
// something like: | |
<BundleLink to="/profile" onLoadStart={() => { | |
// throw a spinner up on the "old" page while we load | |
this.setState({ navigating: true }) | |
}}>Profile</BundleLink> | |
<BundleLink to="/dash" prefetch={true}>Dashboard</BundleLink> | |
/////////////////////////////////////////////////////// | |
const BUNDLED_ROUTES = { |
Drag and Drop is undoubtedly one of the most popular and user-friendly interactions in software nowadays. There are plenty awesome libraries for DnD in React realm, covering most of the use cases. We tried them all at productboard, but realized we need something special for complex interfaces we are building. We developed our own solution that satisfied three main requirements we had:
Alexa & Katie | |
All or Nothing | |
Angel of the Lord 2 | |
Another Life | |
Backstage | |
Barbie Dolphin Magic | |
Basketball or Nothing | |
Beats | |
Black Mirror | |
Captain Underpants: The First Epic Movie |
DELETE | |
DELETE _template/{name} | |
DELETE {index} | |
DELETE {index}/_alias/{name} | |
DELETE {index}/_query | |
DELETE {index}/_warmer | |
DELETE {index}/_warmer/{name} | |
DELETE {index}/{type} | |
DELETE {index}/{type}/_mapping | |
DELETE {index}/{type}/_query |
Example -1 | |
===================== | |
input { | |
file { | |
path => [ "/usr/local/var/log/suricata/eve.json", "/var/log/ulogd.json" ] | |
codec => json | |
type => "json-log" | |
} | |
} |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var styleEl = document.getElementById('css-layout-hack'); | |
if (styleEl) { | |
styleEl.remove(); | |
return; | |
} | |
styleEl = document.createElement('style'); | |
styleEl.id = 'css-layout-hack'; |