This file contains hidden or 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
This demonstrates how to make client side certificates with go | |
First generate the certificates with | |
./makecert.sh [email protected] | |
Run the server in one terminal | |
go run server.go |
This file contains hidden or 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/lua5.2 | |
help = [===[ | |
## lua-indenter.lua | |
**Started:** December 07, 2013, 08:37:25 | |
**Date:** December 15, 2013 | |
**License:** MIT | |
###Usage |
This file contains hidden or 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
package main | |
import ( | |
"os" | |
"log" | |
"net" | |
"strconv" | |
"strings" | |
) |
This file contains hidden or 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 "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}) |
This file contains hidden or 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
# == 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 |
This file contains hidden or 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
# Gemfile | |
gem "linkedin" | |
gem "omniauth" | |
gem "omniauth-linkedin" |
This file contains hidden or 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
TORQUEBOX_SERVER=standalone.xml | |
TORQUEBOX_HOME=/opt/torquebox | |
RUN=yes |
This file contains hidden or 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
<!-- This very basic linked html element does not work on kindle kf8 fixed layout--> | |
<div style="position:absolute; top: 768.0px; left: 157.0px; width: 567px; height: 116px; "> | |
<a href="page_x.html" style="display:block; width:100%; height:100%; border: solid 1px;"> </a> | |
</div> |
This file contains hidden or 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
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) |
This file contains hidden or 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
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(){ |