Skip to content

Instantly share code, notes, and snippets.

@skade
skade / rust-party.md
Last active August 29, 2015 14:21
Rust party invitation

Hello everyone,

you may or may not remember me for speaking about Rust at several usergroups and events. I'm now co-organising the Rust usersgroup and we have a celebration: Rust 1.0 will be released on May 15th.

Rust is a modern systems programming language, statically typed and built with parallelism in mind. It is a good secondary language to more high-level languages.

We'll have two introductory talks to the language and the event. The event attempts to be as beginner-friendly as possible (you are hearing about a new language, after all!).

http://www.meetup.com/Rust-Berlin/events/222087122/ (drop by if you don't have a meetup account)

/*
* def.js: Simple Ruby-style inheritance for JavaScript
*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(global) {
__super__ = function(){
var caller = __super__.caller;
#! /usr/bin/env ruby
status = DATA.flock(File::LOCK_EX | File::LOCK_NB)
if status == 0
puts "we have the lock..."
sleep
else
@technoweenie
technoweenie / api_documentation.rb
Created April 29, 2011 11:54
discarded sinatra documentation extension
# Sinatra module for documenting an API. This info can be exported as JSON
# and used to generate other forms of documentation.
#
# Example documentation for a GET request:
#
# desc "List issues for this Repository"
# param :milestone, Fixnum
# param :state, String, :default => 'open', :choices => %w(open closed)
# get "/repos/:user/:repo/issues" do
# ...
@tmpvar
tmpvar / LICENSE.txt
Created May 20, 2011 02:51 — forked from 140bytes/LICENSE.txt
hatch - the smallest hash based router you've ever seen
Copyright (c) 2011 Elijah Insua, http://tmpvar.com
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@futhr
futhr / TechDecisions.md
Last active October 4, 2015 12:58 — forked from hardbap/TechDecisions.md
Choices to make in a new Rails project.

Team Support

Source Code Control

Github
Alternative: Bitbucket, git (private server)

Time Tracking

None

#include <stdio.h>
int main(void) { /* required by this strange BASIC compiler... */
/* BASIC starts here... */
l10: printf("Hello World\n");
l20: goto l10;
} /* Again, without this it does not work. L4m3 people should not write BASIC compilers... */
/****************************************************************************
**
*F hash_dos.c Stuff 1.00 2012-06-06 ms
**
** This small program demonstrates that a multiplicative hash function
** CANNOT be secured against denial-of-service attacks using a initial seed
** value.
**
** That is because two strings <str1> and <str2> of the same length that
** hash to the same value (i.e. produce a collision) for ONE seed will
@mislav
mislav / initialize_spellcheck.rb
Created August 18, 2012 15:32
Raise error if "initialize" method name is misspelled
# Public: Implementation of "Strike a match" algorithm for calculating
# similarity between strings.
#
# http://www.catalysoft.com/articles/StrikeAMatch.html
#
# Examples
#
# checker = StringSimilarityChecker.new('Quick brown fox')
#
# checker =~ 'quick brown ox' #=> true
@bharrisau
bharrisau / README
Created August 19, 2012 06:14
SMF Manifest to bring up IPv6 on SmartOS
Need to open /usbkey/config and add
admin_v6_ip=xx:xx:xx/xx
admin_v6_gateway=yy:yy:yy
place ipv6 in /opt/custom/smf
place ipv6.xml in /opt/custom/scripts