Skip to content

Instantly share code, notes, and snippets.

View aarti's full-sized avatar
🎯
Focusing

aarti

🎯
Focusing
  • San Francisco Bay Area
View GitHub Profile
@ncw
ncw / README.txt
Last active February 20, 2024 19:30 — forked from spikebike/client output
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go
@nkmathew
nkmathew / lua-indenter.lua
Last active December 2, 2019 09:38
Yet another Lua indenter
#!/usr/bin/lua5.2
help = [===[
## lua-indenter.lua
**Started:** December 07, 2013, 08:37:25
**Date:** December 15, 2013
**License:** MIT
###Usage
@kenshinx
kenshinx / client.go
Last active February 3, 2024 18:49
golang socket server & client ping-pong demo
package main
import (
"os"
"log"
"net"
"strconv"
"strings"
)
@JesterXL
JesterXL / ropeJointvsDistanceJoint.lua
Last active December 18, 2015 08:09
Show's a Box2D rope joint vs. a distance joint in Corona SDK.
require "physics"
display.setStatusBar( display.HiddenStatusBar )
physics.setDrawMode("hybrid")
physics.start()
physics.setGravity(0, 9.8)
physics.setPositionIterations( 10 )
function getGrapplePoint()
local point = display.newRect(0, 0, 10, 10)
physics.addBody(point,"static", {density = 1, friction = .5, bounce = .1})
@basgys
basgys / simple_paperclip.rb
Created June 5, 2013 08:25
Use Paperclip without ActiveRecord
# == Paperclip without ActiveRecord
#
# Simple and lightweight object that can use Paperclip
#
#
# Customized part can be extracted in another class which
# would inherit from SimplePaperclip.
#
# class MyClass < SimplePaperclip
# attr_accessor :image_file_name # :<atached_file_name>_file_name
@raphaelcm
raphaelcm / Gemfile
Last active December 15, 2015 22:08
Integrating with LinkedIn using Rails, Mongoid, Devise, Omniauth, LinkedIn Gem
# Gemfile
gem "linkedin"
gem "omniauth"
gem "omniauth-linkedin"
TORQUEBOX_SERVER=standalone.xml
TORQUEBOX_HOME=/opt/torquebox
RUN=yes
@titusz
titusz / link_area.html
Created December 8, 2012 16:59
kf8 fixed layout drives me crazy
@stevez
stevez / alias_method
Created September 24, 2012 03:06
alias_method
module Mod
alias_method :orig_exit, :exit
def exit(code=0)
puts "Exiting with code #{code}"
orig_exit(code)
end
end
include Mod
exit(99)
@papoms
papoms / fake-referrer.casper.js
Created August 24, 2012 16:10
Fake Referrer with CasperJS
var fakeReferrer = "http://porzky.com"
var targetUrl = "http://keyworddomains.com"
var casper = require('casper').create();
casper.start(fakeReferrer, function() {
this.echo(this.getCurrentUrl());
});
casper.then(function(){