Skip to content

Instantly share code, notes, and snippets.

View nowucca's full-sized avatar

Steven Atkinson nowucca

View GitHub Profile
@nowucca
nowucca / netflix-merch-test-lib.js
Last active March 4, 2017 00:09
Netflix Merch Server Test Framework for Postman
function isIntegerList(arr) {
for(i=0;i<arr.length;i++) {
if (! Number.isInteger(arr[i])) {
return false
}
}
return true
}
function isNotEmpty(str) {
@nowucca
nowucca / Throttle.java
Created June 8, 2015 18:20
Throttle a particular action if it happens too often within a period of time
package com.nowucca.util;
import com.nowucca.exception.InternalException;
import java.util.concurrent.atomic.AtomicInteger;
/**
*/
public class Throttle {
private static int threshold;
@nowucca
nowucca / index.html
Last active January 30, 2023 04:34
This is a sample of my responsive design website "coolchickscupcakes.com". I used html5boilerplate.com, with their ant build, and with Verrechia's responsive design CSS example added to the css. This HTML5 site views well on Android, iOS phones and tablets, as well as desktops. I'm not thrilled with the use of three header sections in the main h…
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" xmlns="http://www.w3.org/1999/html"
xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">