One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
javascript: Promise.all([ | |
import("https://unpkg.com/[email protected]?module"), | |
import("https://unpkg.com/@tehshrike/[email protected]"), | |
]).then(async ([{ default: Turndown }, { default: Readability }]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ | |
const folder = "/2 Cards"; |
declare function sayHello(): void; | |
sayHello(); | |
class Foo { | |
constructor( | |
public num: i32 | |
) {} | |
} | |
export function add(x: i32, y: i32): i32 { |
# sudo gem install bson | |
# sudo gem install bson_ext | |
# sudo gem install yajl-ruby | |
# sudo gem install json | |
# sudo gem install msgpack | |
require 'rubygems' | |
require 'benchmark' | |
require 'yaml' | |
require 'bson' |
use std::collections::HashMap; | |
macro_rules! impl_attrs { | |
() => { | |
pub fn get_attr(&self, key: &str) -> Option<&str> { | |
self.attrs.get(key).map(|s| s.as_str()) | |
} | |
pub fn with_attrs(mut self, attrs: &[(&str, &str)]) -> Self { | |
self.attrs = attrs |
fn find_largest_1<T: PartialOrd + Copy>(list: &[T]) -> T { | |
let mut largest = list[0]; | |
for number in list { | |
if *number > largest { | |
largest = *number; | |
} | |
} | |
largest |
require "bundler/setup" | |
require "kafka" | |
def foo(msg) | |
puts "=="*50 | |
kafka = Kafka.new( | |
seed_brokers: ["shopify.railgun:9092"], | |
client_id: "flow_rails_whatever", | |
logger: Logger.new(STDOUT) | |
) |
require "bundler/setup" | |
require "kafka" | |
def foo(msg) | |
puts "=="*50 | |
kafka = Kafka.new( | |
seed_brokers: ["shopify.railgun:9092"], | |
client_id: "flow_rails_whatever", | |
logger: Logger.new(STDOUT) | |
) |
Sample time from 2018-09-25 04:00:00 -0400 to 2018-09-25 04:01:00 -0400 | |
--> COUNT CHECK | |
All 1381 flow runs are found in flow run statuses | |
--> STATUS CHECK | |
There are 1381 records with different status | |
flow_run_uuid, flow_run, flow_run_status | |
06439fb2-b667-435e-88c9-bd7f4d619fb9-21127, complete, init | |
0d4a80e0-799f-470e-9831-0afc820612fa-16320, complete, running |
rp, wp = IO.pipe | |
mesg = "ping " | |
20.times { |i| | |
print "##{i} " | |
rs, ws, = IO.select([rp], [wp]) | |
require'pry-byebug';binding.pry | |
if r = rs[0] | |
ret = r.read(5) | |
print ret | |
case ret |