This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Blank snippet | |
description: Create a new snippet from a blank template. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Word.run(async (context) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thin » siege http://neon-stan.herokuapp.com/api/v1/apps -r10 -c25 ** SIEGE 2.72 | |
** Preparing 25 concurrent users for battle. The server is now under siege.. done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "openssl" | |
require "base64" | |
include Base64 | |
plain_text = "The beatings will continue until morale improves" | |
seckey = OpenSSL::PKey::RSA.new(1024) | |
pubkey = seckey.public_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "openssl" | |
require "base64" | |
include Base64 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
» rspec string_spec.rb | |
F | |
Failures: | |
1) String | |
Failure/Error: it { should_receive(:size) } | |
(#<RSpec::Core::ExampleGroup::Nested_1:0x000000013e67b8>).size(any args) | |
expected: 1 time | |
received: 0 times |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env script/runner | |
# vim:ft=ruby | |
# | |
# Script runs endless loop, picks least recently updated wmid, pulls its | |
# Customer, performs complete import rests 1 second and repeats. | |
# | |
# Start: | |
# | |
# app/bin/satrap | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Benchmark/Timer.php'; | |
$timer = new Benchmark_Timer; | |
$timer->setMarker('start'); | |
for($i = 0; $i < 1000000; $i++) | |
{ | |
$stack = array(); | |
$stack[] = true; |