Skip to content

Instantly share code, notes, and snippets.

@sshaw
sshaw / rusage.rb
Last active October 19, 2017 13:55 — forked from itsderek23/rusage.rb
require 'get_process_mem'
require 'rusage' # gem install rusage
require 'benchmark'
n = 2000
gpm = GetProcessMem.new
Benchmark.bm(10) do |x|
x.report("status:") { n.times do gpm.linux_status_memory end }
# In sshaw version
@sshaw
sshaw / index.html
Last active April 10, 2017 23:55 — forked from sasharevzin/slack.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Slack Message to Emoji</title>
<script src="slack.js"></script>
<style>
h1 {
text-align: center;
}