Skip to content

Instantly share code, notes, and snippets.

View jrthib's full-sized avatar
🎸

Joseph Thibeault jrthib

🎸
View GitHub Profile
@jrthib
jrthib / gist:f7d40764cf7c3a8bec9b
Created February 25, 2015 21:04
Balanced payments - getting the merchant bank account.
// The examples provided at [https://github.com/balanced/balanced-node/blob/master/snippets/order-credit-marketplace.js]
// and also: [https://docs.balancedpayments.com/1.1/guides/orders/credit-marketplace/] are not very detailed.
// The following example is what is required to get the marketplace bank account to then issue credits to your marketplace.
balanced.marketplace.then(function(marketplace) {
marketplace.owner_customer.bank_accounts.get(0).then(function(bankAccount) {
console.log(bankAccount);
});
});
#!/bin/sh
####################################
# Output file for HTML5 video #
# Requirements: #
# - handbrakecli #
# - ffmpeg #
# - ffmpeg2theora #
# #
# usage: #
@jrthib
jrthib / AnotherController.js
Created July 16, 2014 23:50
Factory using promises to start the socket.io authentication and session after logging into an Angular app.
(function() {
'use strict';
function AnotherController($scope, socket) {
// use the socket factory through your app, but you must use socket.then
// so that the actions occur once the socket is established
socket.then(function(socket) {
socket.emit('some_socket_event', {});
});
do ($ = jQuery, window) ->
pluginName = "economicImpactMap"
defaults =
delay: 2000
currentLocation = 0
rotator = null
class Plugin
constructor: (@element, options) ->
@settings = $.extend {}, defaults, options
@jrthib
jrthib / gist:9123135
Created February 20, 2014 21:02
mount.sh
#/bin/bash
expect -c "
set timeout 1
spawn mount /var/lib/jenkins/mnt/map
expect y,N { send y\r ; exp_continue }
sleep 20
exit
"
@jrthib
jrthib / header.php
Last active January 4, 2016 19:49
UConn WP Banner example for fixed navigation.
<body>
<div class="l-canvas type_wide col_cont headerpos_fixed">
<div class="l-canvas-h">
<div class="l-header type_fixed">
<?php do_action('uconn_banner'); ?>
</div>
</div>
<div class="l-header-h">
<!— everything else for the header —>
</div>
#wpcf7-f492-p493-o1 span.wpcf7-list-item {
display:block;
}
@jrthib
jrthib / UConnHuskyLogoASCII
Created October 25, 2013 14:56
UConn Husky Dog Logo ASCII Art
..+ .:.
..+8N+. .+$8+.
.++NNNN+=. .,+NNNN++..
+7NNNNNN?+. ...+NNNNNNN+.
..+NNNN..NNN++. .,+NNN...NNN+.
. +DNN.....NNN+.. .+NNN ...NNN+.
..+DNN ..N7. NNN+. +NNN. .NN..NNN+.
++NN..:NNN .NN?+ .:?NN. .NNNO..NN7+
<div id="ourServicesMenu" class="submenu">
<ul>
<li class="title"><a href="/our-services/bariatrics/">Bariatrics</a></li>
<li><a href="/our-services/bariatrics/">Overview</a></li>
<li><a href="/our-services/bariatrics/our-physicians/">Our Physicians</a></li>
<li><a href="/our-services/bariatrics/technology-procedures/">Technology &amp; Procedures</a></li>
<li><a href="/our-services/bariatrics/departments-services/">Departments &amp; Services</a></li>
<li><a href="/our-services/bariatrics/programs-classes/">Programs &amp; Classes</a></li>
<li><a href="/our-services/bariatrics/resources-tools/">Resources &amp; Tools</a></li>
<li><a href="/our-services/bariatrics/patient-stories/">Patient Stories</a></li>
@jrthib
jrthib / gruntFile.js
Created October 1, 2013 01:56
Sample GruntFile
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('grunt-karma');