This file contains 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
# Scenario 1: Customer is not found | |
> curl -u {PLATFORM_KEY}: https://api.stripe.com/v1/charges \ | |
-H "Stripe-Account: acct_<serviceprovider>" | |
-d amount=10000 | |
-d currency=usd | |
-d customer=cus_<customer> | |
-d source=src_<cardoncustomer> | |
-d application_fee=75 | |
{ |
This file contains 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
mysql_install_db: [ERROR] unknown variable 'pid-file=/run/mysqld/mysqld.pid' | |
configuration.nix: | |
services.mysql = { | |
enable = true; | |
package = pkgs.mysql57; | |
initialDatabases = [ | |
{ name = "akron"; schema = ./akron.sql; } | |
]; |
This file has been truncated, but you can view the full file.
This file contains 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
SteamVR System Report created Thu Feb 23 05:45:43 2017 | |
<Report> | |
SteamVR Version: 1487744123 | |
SteamVR Date: 2017-02-22 | |
Steam: Public | |
Steam Branch: beta | |
Steam AppID: 250820 | |
Tracking: lighthouse | |
OS: Linux version 4.9.11-1-ARCH (builduser@heftig-11715) (gcc version 6.3.1 20170109 (GCC) ) #1 SMP PREEMPT Sun Feb 19 13:45:52 UTC 2017 |
This file contains 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
{ | |
haskell = super.haskell // { | |
packages = super.haskell.packages // { | |
lts = super.haskell.packages.lts.override { | |
overrides = self: super: { | |
heist = super.heist.overrideDerivation (old: { | |
doCheck = false; | |
testToolDepends = [ super.pandoc ]; | |
}); | |
}; |
This file contains 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( bad_redirect_on_create ). | |
-export([ init/1, | |
allowed_methods/2, | |
content_types_accepted/2, | |
content_types_provided/2, | |
create_path/2, | |
post_is_create/2, | |
from_json/2, |
This file contains 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( permute_list ). | |
-export([ permute/1 ]). | |
permute( List ) -> | |
jumble( List, [] ). | |
jumble( [], Permuted_List ) -> | |
Permuted_List; | |
jumble( List, Permuted_List ) -> | |
Index = random:uniform( length(List) ) -1, |
This file contains 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
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "dvorak-control"; | |
src = ./blanksource; | |
buildInputs = [ kbd ]; | |
installPhase = '' | |
mkdir -p "$out" | |
zcat "${kbd}/share/keymaps/i386/dvorak/dvorak.map.gz" | \ |
This file contains 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
private static abstract class MyClosure implements Runnable { | |
MyClosure( int x ) { | |
this.x = x; | |
} | |
int x; | |
} | |
/* later... somewhere in a method */ | |
int x = 42; | |
handler.post( new MyClosure( x ) { |
This file contains 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
#!/bin/sh | |
die() { | |
echo "$*" >&2 | |
exit 1 | |
} | |
# | |
# Determine dump level based on what day it is: | |
# |
This file contains 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
{-# LANGUAGE RecursiveDo #-} | |
module FRP.Sodium.State | |
( runAccum | |
, snapshotState | |
) where | |
import Control.Monad.State | |
import FRP.Sodium | |
type AccumE s = State (Behaviour s, Event s) |
NewerOlder