Skip to content

Instantly share code, notes, and snippets.

kernel.shmmax = 5000000000
kernel.shmmni = 4096
kernel.shmall = 4000000000
kernel.sem = 250 64000 100 512
vm.overcommit_memory = 2
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_max_syn_backlog=4096
net.core.netdev_max_backlog=10000
{50229187=
1.0240434 = (MATCH) fieldWeight(tags:babies in 504301), product of:
0.7060355 = (MATCH) btq, product of:
0.70710677 = tf(phraseFreq=0.5)
0.998485 = scorePayload(...)
3.8677695 = idf(tags: babies=413219)
0.375 = fieldNorm(field=tags, doc=504301)
,50229178=
1.0240431 = (MATCH) fieldWeight(tags:babies in 5653885), product of:
0.70603526 = (MATCH) btq, product of:
traceroute to e2463.b.akamaiedge.net (184.85.26.37), 64 hops max, 52 byte packets
1 192.168.2.1 (192.168.2.1) 6.218 ms 2.129 ms 1.365 ms
2 10.80.0.1 (10.80.0.1) 13.263 ms 25.732 ms 9.288 ms
3 gig-2-6-nycmnyr-rtr2.nyc.rr.com (24.29.139.110) 9.806 ms 10.250 ms 14.296 ms
4 tengig-0-1-0-nyquny91-jun01.nyc.rr.com (24.29.157.94) 12.504 ms 10.454 ms 11.041 ms
5 cpe-24-29-148-70.nyc.res.rr.com (24.29.148.70) 12.308 ms 25.276 ms 11.475 ms
6 66.109.6.76 (66.109.6.76) 16.503 ms 21.301 ms 12.022 ms
7 ae-0-0.pr0.nyc20.tbone.rr.com (66.109.6.157) 14.372 ms 13.046 ms 16.683 ms
8 paix-lga.netarch.akamai.com (198.32.118.127) 12.787 ms 13.665 ms 16.481 ms
9 *
irb(main):001:0> average_number_of_seconds_to_type_and_run_set_classpath = 3.5
=> 3.5
irb(main):002:0> average_number_of_shells_opened_per_day = 6.0
=> 6.0
irb(main):003:0> number_of_team_members_using_analytics = 6.0
=> 6.0
irb(main):004:0> percentage_of_shells_used_to_run_jobs = 0.20
=> 0.2
irb(main):005:0> number_of_seconds_in_a_minute = 60.0
=> 60.0
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
-- Coffeescript
-> x ?= (-> if true then "hi")
-- Compiled (wrong?)
(function() {
(function() {
return typeof x !== "undefined" && x !== null ? x : x = (function() {
job ($, _) ->
$.flow 'word count', ->
$.source 'input', $.tap("test.txt", $.text_line_scheme("line"))
assembly = $.assembly 'input', ->
$.map add: { word: "string" }, remove: ["line"], (tuple, writer) ->
for word in tuple.line.match(/\S+/g)
writer word: word
count = 0
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@nav = UINavigationController.alloc.init
@window.rootViewController = @nav
@window.makeKeyAndVisible
image_picker = UIImagePickerController.alloc.init
image_picker.sourceType = UIImagePickerControllerSourceTypeCamera
image_picker.mediaTypes = [KUTTypeImage]
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
button = UIButton.buttonWithType(UIButtonTypeRoundedRect)
@window.addSubview(button)
button.frame = [[40,200],[200,50]]
button.addTarget(self, action:"leak_some_memory", forControlEvents:UIControlEventTouchDown)
@window.makeKeyAndVisible
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@view = UIButton.alloc.initWithFrame([[0,0],[150,150]])
@view.backgroundColor = UIColor.redColor
window.addSubview(@view)
@count = 0
window.makeKeyAndVisible
@view.addTarget(self, action:"tapped", forControlEvents:UIControlEventTouchUpInside)