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
#!/bin/sh | |
# | |
## this script originated from a one-liner posted to #centos-social | |
## by Mike Harris; mharris on irc.freenode.net. Script used with | |
## permission. | |
# | |
for each in $(rpm -qa |sort) | |
do |
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/env perl | |
package Foo { | |
use Mojo::Base '-base'; | |
sub new { | |
my $class = shift; | |
my $store = {}; | |
bless sub { | |
my $opt = shift; | |
$store->{base} //= $class->SUPER::new; |
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/env perl | |
use strict; | |
use warnings; | |
use Time::HiRes qw/ gettimeofday tv_interval /; | |
my $iters = 50000000; | |
package panda { | |
use Mojo::Base -base; |
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/env perl | |
use strict; | |
use warnings; | |
use Time::HiRes qw/ gettimeofday tv_interval /; | |
my $iters = 50000000; | |
package panda { | |
use Mojo::Base -base; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Composure demo</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.css"> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/js/bootstrap.js"></script> |
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
<h1>Welcome to Composure</h1> | |
<img src="https://docs.google.com/drawings/d/1tppdtr7noODf_1qJYOORdFmnmSaRh4mwZZxMiTkDBqQ/pub?w=465&h=341"> |
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
{ | |
"/": { | |
"Methods": [ "GET" ], | |
"Template": { | |
"Type": "URL", | |
"Request": [ "https://gist.githubusercontent.com/ian-kent/ead9f381a2ff2463d9ef/raw/ce1a2e033ccf8e4804ba40fdd1412055ad0b95de/index.html" ] | |
}, | |
"Postflight": { | |
"Type": "URL", | |
"Response": [{ |
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
diff --git a/dynamodb/scan.go b/dynamodb/scan.go | |
index 8e08eb9..3c46933 100644 | |
--- a/dynamodb/scan.go | |
+++ b/dynamodb/scan.go | |
@@ -109,6 +109,48 @@ func (t *Table) Scan(attributeComparisons []AttributeComparison) ([]map[string]* | |
return t.FetchResults(q) | |
} | |
+func (t *Table) CountScan() (int64, error) { | |
+ var lastEvaluatedKey *Key |
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 ( | |
"fmt" | |
"log" | |
"github.com/crowdmob/goamz/aws" | |
"github.com/crowdmob/goamz/elasticache" | |
) |