Skip to content

Instantly share code, notes, and snippets.

View GeneralistDev's full-sized avatar
🏠
Working from home

Daniel Parker GeneralistDev

🏠
Working from home
View GitHub Profile
@GeneralistDev
GeneralistDev / Roundhouse
Created September 14, 2015 04:20
Roundhouse
..\packages\roundhouse.0.8.6\bin\rh.exe -d=sacs -f=.\ -c="Data Source=(local)\SQL2014;Initial Catalog=Sacs;Integrated Security=True" -t -ni -env=DEV -drop
@GeneralistDev
GeneralistDev / produceload.sh
Last active August 29, 2015 14:27
Produce load on blog
#!/bin/bash
trap ctrl_c INT
function ctrl_c() {
exit 2;
}
while true
do
command -v ab >/dev/null 2>&1 || { echo >&2 "I require foo but it's not installed. Aborting."; exit 1; }
@GeneralistDev
GeneralistDev / chevron-usage.html
Last active August 29, 2015 14:20
CSS 960px width page chevron horizontal rule combinations
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="chevrons.css"></link>
</head>
<body>
<div id="demo-container">
<h1>Full-width horizontal line chevron</h1>
<!-- Start full width rule -->
#include "PrimeIterator.h"
PrimeIterator::PrimeIterator()
{
fCurrent = 2;
fCurrentIndex = 1;
}
PrimeIterator& PrimeIterator::operator++()
{
@GeneralistDev
GeneralistDev / wtfoperator.c
Created April 15, 2015 14:13
WTF Operator ??!??!
#include <stdio.h>
int TestValue(int i)
{
return i ? 1 : 0;
}
int HandleFalse()
{
printf("Value was false");
@GeneralistDev
GeneralistDev / approachesloop.cpp
Created April 15, 2015 14:00
i approaches zero
#include <iostream>
int main(int argc, const char * argv[]) {
int i = 100;
while(i --> 0) // i approaches 0
{
std::cout << i << std::endl;
}
return 0;
}
@GeneralistDev
GeneralistDev / bluegrad.css
Created April 14, 2015 00:39
nice blue gradient
background: #0096d0; /* Old browsers */
background: -moz-linear-gradient(top, #0096d0 73%, #0096d0 73%, #0086ba 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(73%,#0096d0), color-stop(73%,#0096d0), color-stop(100%,#0086ba)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #0096d0 73%,#0096d0 73%,#0086ba 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #0096d0 73%,#0096d0 73%,#0086ba 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #0096d0 73%,#0096d0 73%,#0086ba 100%); /* IE10+ */
background: linear-gradient(to bottom, #0096d0 73%,#0096d0 73%,#0086ba 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0096d0', endColorstr='#0086ba',GradientType=0 ); /* IE6-9 */
@GeneralistDev
GeneralistDev / counter.sh
Created January 30, 2015 02:46
counter.sh
#!/bin/bash
for((i=0;;i++))
do
curl -X GET http://www.hit-counts.com/counter.php?t=MTMzODE1MQ== &> /dev/null
echo $i
done
@GeneralistDev
GeneralistDev / keybase.md
Created January 13, 2015 05:22
keybase.md

Keybase proof

I hereby claim:

  • I am rlgod on github.
  • I am rlgod (https://keybase.io/rlgod) on keybase.
  • I have a public key whose fingerprint is 6703 41BC 992E A235 82C9 9111 80FB 8121 5A73 BBED

To claim this, I am signing this object:

@GeneralistDev
GeneralistDev / trendChattr.aml
Created November 5, 2014 05:36
trendChattr proto1
app {
landing-page loginScreen
android-sdk "/Users/danielparker/Applications/android-sdk"
}
api trendchattr "http://api.trendchattr.com"{
GET chatrooms "/chatrooms" {list}
}
screen loginScreen "Login" {