This file contains 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
describe('Common: recordDirective', function() { | |
var $scope, $stateParams, $state, $compile, $q, element, makeHtml; | |
// each test in this file MUST call this method | |
// to customize var form and var $scope for itself | |
makeHtml = function(nonClickable) { | |
// $scope = $scope.$new(); |
This file contains 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
var app = angular.module('app', []); | |
app.factory('geoLoc', ['$q', '$window', function ($q, $window) { | |
'use strict'; | |
return { | |
currentPosition: function() { | |
var deferred = $q.defer(); |
This file contains 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
<?php | |
public function array_only($original, $keeping) | |
{ | |
// remove the following keys from the rendered bill object | |
$arr = []; | |
foreach ($keeping as $key) | |
{ |
This file contains 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
// the goal of this script is to save you time when using BOLD product options | |
// for your shopify store. it currently only works for drop down options. | |
// run it in your browser's console on the "create option" page in the bold app. | |
// fill out the values for these three variables: | |
// 1. internalName | |
// 2. publicName | |
// 3. options |
This file contains 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
// USAGE: | |
// | | |
// /-> rrule (text) | |
// ^ \-> displays sentance | |
// ^ \-> change settings | |
// ^ \-> change rrule - | |
// ^ | | |
// \--<--<--<--<--<--<---/ | |
class ScheduledInvoiceForm extends React.Component { |
This file contains 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
action @ 12:40:20.638 rrf/reset | |
prev state Object {auth: Object, analytics: Object, loginUser: Object, registerUser: Object, registerMerchant: Object…} | |
action Object {type: "rrf/reset", model: "payment"} | |
next state Object {auth: Object, analytics: Object, loginUser: Object, registerUser: Object, registerMerchant: Object…} | |
action @ 12:40:20.654 rrf/reset | |
prev state Object {auth: Object, analytics: Object, loginUser: Object, registerUser: Object, registerMerchant: Object…} | |
action Object {type: "rrf/reset", model: "customer"} | |
next state Object {auth: Object, analytics: Object, loginUser: Object, registerUser: Object, registerMerchant: Object…} | |
action @ 12:40:20.663 rrf/reset | |
prev state Object {auth: Object, analytics: Object, loginUser: Object, registerUser: Object, registerMerchant: Object…} |
This file contains 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
// https://github.com/andrewrk/node-s3-client | |
import path from 'path'; | |
import s3 from 's3'; | |
require('dotenv').config({'path': path.resolve('./.env')}); | |
const debug = require('debug')('emaf'); | |
const client = s3.createClient({ |
This file contains 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
# in terminal: | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# from: https://developerjack.com/blog/2016/08/26/Installing-PHP71-with-homebrew/ | |
brew update | |
brew upgrade | |
brew tap homebrew/dupes |
This file contains 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
const auth = require('./util/auth-util'); | |
const merchant = require('./util/merchant-util'); | |
const session = require('express-session'); | |
const passport = require('passport'); | |
const IntuitStrategy = require('passport-intuit-oauth').Strategy; | |
const port = process.env.PORT || 3000; | |
console.info(['STARTUP ENVIRONMENT: ', process.env.NODE_ENV || 'unknown'].join(' ')); |
This file contains 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/python | |
import csv | |
import json | |
header = [] | |
results = [] | |
print "[" | |
with open('data.csv', 'rb') as f: |
OlderNewer