Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mlopes
mlopes / globaltoc.rst
Created January 30, 2012 16:34
globaltoc.rst file generating an empty TOC
@mlopes
mlopes / gist:1852550
Created February 17, 2012 10:36
Convert wordpress style caption tags to octopress image tags
#!/usr/bin/perl
use strict;
my $script_name = $ARGV[0];
my $file_contents = "";
while(<>) {
if($_ =~ /\[caption.*/) {
my %imageData;
@mlopes
mlopes / gist:1852698
Created February 17, 2012 11:05
Convert wordpress plugin vipers quicktags youtube tags to octopress youtube tags
#!/usr/bin/perl
use strict;
my $script_name = $ARGV[0];
my $file_contents = "";
while(<>) {
if($_ =~ /\[youtube\](.*)\[\/youtube\]/) {
if($1 =~ /[\?&]v=([^&]+).*/) {
# Tell - The de-coupling allows me to write the example without having to write an example of the Keychain class
class EncryptionKey:
def __init__(self, keychain):
self.keychain = keychain
def decrypt(self, password):
if _decrypt(password):
self.keychain.unlock()

Keybase proof

I hereby claim:

  • I am mlopes on github.
  • I am mlopes (https://keybase.io/mlopes) on keybase.
  • I have a public key whose fingerprint is 0F50 1723 91FB 6D17 9644 BB99 FA9E A8FB 66EA AA8E

To claim this, I am signing this object:

Feature: API user adds credentials to an agile keychain
So that I can store my passwords
As an API user
I must be able to add credentials to the keychain
Scenario: Adding website credentials to the keychain
Given I have an initialised keychain
When I assign my credentials to a key in the keychain
Then that data should be stored in the keychain
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>About</title>
<meta name="viewport" content="width=device-width">
<meta name="description" content="- I have to tell you something!<br />- What is it?<br />- There's a lemon behind the sofa!">
<link rel="canonical" href="http://thelemonbehindthesofa.com/about/">
D/AndroidRuntime( 1433):
D/AndroidRuntime( 1433): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1433): CheckJNI is ON
D/dalvikvm( 1433): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1433): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1433): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1433): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 1433): Calling main entry com.android.commands.pm.Pm
I/ActivityManager( 995): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=1444 uid=10004 gids={1015, 2001, 1028}
E/Trace ( 1444): error opening trace file: No such file or directory (2)
dist/dist-sandbox-9747bf3a/build/vindinium/vindinium training XXXX --url http://vindinium.org/ --turns 90
vindinium: StatusCodeException (Status {statusCode = 400, statusMessage = "Bad Request"}) [("Server","nginx"),("Date","Tue, 07 Oct 2014 17:35:58 GMT"),("Content-Type","text/plain; charset=utf-8"),("Content-Length","32"),("Connection","keep-alive"),("X-Response-Body-Start","Vindinium - The game is finished"),("X-Request-URL","POST http://vindinium.org:80/api/b3xfb06k/8ynm/play")] (CJ {expose = []})
import Data.Text (Text)
import qualified Data.Yaml as Y
import Data.Yaml (FromJSON(..), (.:))
import Data.ByteString (ByteString)
import Text.RawString.QQ
import Control.Applicative
actionsYml :: ByteString
actionsYml = [r|
action: