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
| ./configure --enable-debian \ | |
| --with-acls \ | |
| --with-ssl-dir=/usr/include/openssl \ | |
| --enable-dropkludge \ | |
| --with-cracklib=/usr/share/cracklib/cracklib-small \ | |
| --with-libgcrypt-dir=/usr/lib |
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
| valid = _.reduce _.invoke(jQ(this).find('input'),'val'), (memo, num) -> | |
| return num.length unless num.length > 5 | |
| memo is num | |
| if typeof valid is 'number' | |
| # too short | |
| else if valid isnt yes | |
| # not matching |
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
| Sailormoon.observe { | |
| "a[sigil=login]:click": (event) -> | |
| new Sailormoon.Views.LoginWindow(event) | |
| false | |
| "a[sigil=signup]:click": (event) -> | |
| new Sailormoon.Views.Signup(event) | |
| false | |
| } |
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
| Event.addBehavior { | |
| "form.register:submit": (event) -> | |
| Event.stop event | |
| @request { | |
| onSuccess: => | |
| @update 'Splendid, we’ve got you down for an invite.' | |
| } | |
| } |
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
| Event.addBehaviors({ | |
| ".popup button.nevermind":function(){ | |
| this.up('.popup').hide(); | |
| return false; | |
| }, | |
| "button.nevermind":function(){ | |
| window.location.back(); | |
| } | |
| }); |
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 Mycroft | |
| module Action | |
| class Base | |
| def initialize(options) | |
| @options = options | |
| end | |
| def self.create(options) | |
| self.new(options).save |
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
| source "life://127.0.0.1" | |
| gem "knowledge" | |
| gem "happiness" | |
| gem "longevity", "~>85.0", :require => "age" | |
| gem "health" | |
| gem "responsibility", "0.5.1a" | |
| gem "wisdom" | |
| gem "fun" |
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
| backend default { | |
| .host = "localhost"; | |
| .port = "8000"; | |
| } | |
| sub vcl_recv { | |
| if (req.http.x-forwarded-for) { | |
| set req.http.X-Forwarded-For = req.http.X-Forwarded-For ", " client.ip; | |
| } else { | |
| set req.http.X-Forwarded-For = client.ip; |
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
| // ## StorageManager | |
| // Aids in interacting with the HTML5 localStorage API. | |
| StorageManager = { | |
| // Returns the data associated with a key or `false` of no data exists. | |
| get: function(key){ | |
| var data = localStorage.getItem(key); | |
| if (data === "" || data === null){ | |
| return false; | |
| } else { |
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
| function urlify(text) { | |
| var urlRegex = /(https?:\/\/[^\s]+)/g; | |
| return text.replace(urlRegex, function(url) { | |
| return '<a href="' + url + '">' + url + '</a>'; | |
| }) | |
| // or alternatively | |
| // return text.replace(urlRegex, '<a href="$1">$1</a>') | |
| } |