Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View pgburt's full-sized avatar

Paul Burt pgburt

View GitHub Profile
package main
import (
"fmt"
"math"
"math/big"
//"github.com/iron-io/iron_go/worker"
)
@pgburt
pgburt / Headlines-and-copy.md
Last active February 17, 2016 00:26
Notes on article titles and writing styles that I enjoy.

##Headlines ###Parse 2.0 Parse:

  • This first bit was in the news the week prior for shutting down.

2.0:

  • Short, sweet, and says exactly what the article is about. "The next things for Parse customers".
  • Also works as a great contrast against other headlines (which are more likely to be wordy).
  • A heading like Parse 1.3 would not work. Not enough oomf to the change.
@pgburt
pgburt / notes.md
Last active January 20, 2016 02:22
Notes from 1/19/16 SFRails
@pgburt
pgburt / index.js
Last active January 8, 2016 21:00
#!/usr/bin/env node
var validate = require('data-validate');
var valid = validate.len(8)
.isEmail()
.notContains('+')
('pam@example.com')
var invalid = validate.len(8)
.isEmail()
.notContains('+')
package main
import (
"fmt"
"math"
)
func main() {
for n := 1; n <= 10; n++ {
leibnizNum := math.Pow(-1, float64(n)) / float64(2 * n + 1)
@pgburt
pgburt / hello.go
Created December 11, 2015 19:51
Hey, I'm having some trouble understanding what's happening here.
package main
import "fmt"
func zeroval(ival int) {
ival = 0
fmt.Println("ival:", ival)
}
func zeroptr(iptr *int) {
require_relative 'bundle/bundler/setup'
require 'json'
require 'iron_worker'
require 'erb'
# Load data
attack_file = File.new('./verbs.erb', 'r').read
payload = IronWorker.payload
# Build the .attack file using payload data
Feature: Evaluate responses to various HTTP methods.
Background:
Given "curl" is installed
And the following profile:
| name | value |
<% payload.each do |key, value| %>
<%= "| hostname | #{value} |" %>
<% end %>
Feature: Evaluate responses to various HTTP methods.
Background:
Given "curl" is installed
And the following profile:
| name | value |
| hostname | google.com |
Scenario Outline: Verify server responds correctly to various HTTP methods
When I launch a "curl" attack with:
# https://projecteuler.net/problem=3
# The prime factors of 13195 are 5, 7, 13 and 29.
# What is the largest prime factor of the number 600851475143 ?
sleep(5)
$factor_this = 600851475143.0
$primes = [2, 3]
$solution = [0]