Skip to content

Instantly share code, notes, and snippets.

View shapiromichael's full-sized avatar
😉
keep calm and write code

Michael Shapiro shapiromichael

😉
keep calm and write code
  • TripleTech
  • Israel
View GitHub Profile
'use strict';
is = {
Array(input) {
return Array.isArray(input);
},
Object(input) {
return ('object' === typeof input && input.constructor == Object && input !== null);
},
Function(input) {
var data = JSON.parse(responseBody);
tests["Status code is 200"] = responseCode.code === 200;
tests["Response time is less than 1000ms"] = responseTime < 1000;
tests["Response Content-Type is JSON"] = postman.getResponseHeader("Content-Type") === "application/json"
tests["Response has a success value"] = data.hasOwnProperty("success");
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
[
{"name": "Afghanistan", "code": "AF"},
{"name": "Åland Islands", "code": "AX"},
{"name": "Albania", "code": "AL"},
{"name": "Algeria", "code": "DZ"},
{"name": "American Samoa", "code": "AS"},
{"name": "AndorrA", "code": "AD"},
{"name": "Angola", "code": "AO"},
{"name": "Anguilla", "code": "AI"},
{"name": "Antarctica", "code": "AQ"},
@mixin calc($property, $expression) {
#{$property}: -webkit-calc(#{$expression});
#{$property}: -moz-calc(#{$expression});
#{$property}: -ms-calc(#{$expression});
#{$property}: -o-calc(#{$expression});
#{$property}: calc(#{$expression});
}
var cookie = {
set: function(){
var a = cookie.set.arguments,
n = a[0],
v = a[1],
e = a[2],
es = a[3],
p = a[4];
if(!p) {
window.LIB = window.LIB || {};
LIB = function(){
// Settings
var lib = this,
defaults = {
element: $(),
// Events
@shapiromichael
shapiromichael / .gitignore
Created July 3, 2012 11:24
WP Project git ignore file
wp-admin/
wp-content/plugins/
wp-content/themes/twentyeleven/
wp-content/themes/twentyten/
wp-includes/
readme.html
index.php
wp-activate.php
wp-app.php
wp-blog-header.php