Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
// app.js | |
$(document).ready(function(){ | |
$('#calendar').calendarize({ | |
param2: 'custom param2' | |
}); | |
}); | |
//calendarize.js | |
(function($){ |
# include this in application controller | |
module Authentication | |
protected | |
# Inclusion hook to make #current_user and #signed_in? | |
# available as ActionView helper methods. | |
def self.included(base) | |
base.send :helper_method, :current_user, :signed_in?, :authorized? if base.respond_to? :helper_method | |
end | |
# Returns true or false if the user is signed in. |
/* | |
* Creates a callback to be called after multiple functions are done | |
* Usage: | |
* var wait = Q.wait(function (params, subjects) { | |
* // arguments that were passed are in params.user, params.stream | |
* // this objects that were passed are in subjects.user, subjects.stream | |
* }, ['user', 'stream]); | |
* mysql("SELECT * FROM user WHERE user_id = 2", wait.fill('user')); | |
* mysql("SELECT * FROM stream WHERE publisher_id = 2", wait.fill('stream')); | |
* |
var detectBackOrForward = function(onBack, onForward) { | |
hashHistory = [window.location.hash]; | |
historyLength = window.history.length; | |
return function() { | |
var hash = window.location.hash, length = window.history.length; | |
if (hashHistory.length && historyLength == length) { | |
if (hashHistory[hashHistory.length - 2] == hash) { | |
hashHistory = hashHistory.slice(0, -1); | |
onBack(); |
require './minirest' | |
on "https://convore.com" do | |
conf do | |
@user = "fyskij" | |
@pass = "mypass" | |
end | |
get "/api/account/verify.json" |
class TagCloud | |
MAP = <<-JS | |
function () { | |
this.tags.forEach(function (tag) { | |
emit(tag, 1); | |
}); | |
} | |
JS | |
REDUCE = <<-JS |
var user = { | |
validateCredentials: function (username, password) { | |
return ( | |
(!(username += '') || username === '') ? { error: "No Username Given.", field: 'name' } | |
: (!(username += '') || password === '') ? { error: "No Password Given.", field: 'pass' } | |
: (username.length < 3) ? { error: "Username is less than 3 Characters.", field: 'name' } | |
: (password.length < 4) ? { error: "Password is less than 4 Characters.", field: 'pass' } | |
: (!/^([a-z0-9-_]+)$/i.test(username)) ? { error: "Username contains invalid characters.", field: 'name' } | |
: false | |
); |
Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
# RSpec matcher to spec serialized ActiveRecord attributes. | |
# | |
# Usage: | |
# | |
# describe Post do | |
# it { should serialize(:data) } # serialize :data | |
# it { should serialize(:registers).as(Array) } # serialize :registers, Array | |
# it { should serialize(:options).as(Hash) } # serialize :options, Hash | |
# end |
{ | |
"name": "Adam Kirkwood's SKetchpack", | |
"schema_version": "0.1.0", | |
"locked": false, | |
"plugins": { | |
"AnimaApp/auto-layout": { | |
"name": "auto-layout", | |
"owner": "AnimaApp", | |
"version": "0.2.3", | |
"version_range": [ |