Skip to content

Instantly share code, notes, and snippets.

View bijoutrouvaille's full-sized avatar

Bijou Trouvaille bijoutrouvaille

  • Abstract Subject
  • Naperville, IL
View GitHub Profile
@bijoutrouvaille
bijoutrouvaille / fa2-call-example.ts
Last active September 29, 2022 21:38
Taquito calling an fa2 endpoint
import * as t from "@taquito/taquito";
import * as s from "@taquito/signer";
import * as c from '@taquito/michel-codec';
import * as fs from 'fs';
async function main() {
const secretKeys = JSON.parse(fs.readFileSync(process.env['HOME'] + '/.tezos-client/secret_keys', 'utf-8')) as {name: string, value: string}[];
@bijoutrouvaille
bijoutrouvaille / stackdriver-logger-req.sh
Created September 7, 2017 16:38
stackdriver logger test
logger '{
"message": "Some test message",
"context": {
"reportLocation": {
"functionName": "my_function"
}
},
"serviceContext": {
"service": "my service",
}
@bijoutrouvaille
bijoutrouvaille / geofire.d.ts
Last active March 8, 2019 00:35
GeoFire Typescript Declarations
declare module 'geofire' {
import firebase from 'firebase'
namespace GeoFire {
type Dictionary<T> = { [key:string]: T }
type Latitude = number
type Longitude = number
type Ref = firebase.database.Reference
type Location = [Latitude, Longitude]
type CenterCriteria = {center:Location}
type RadiusCriteria = {radius: number}
@bijoutrouvaille
bijoutrouvaille / jas-idea.js
Created May 26, 2012 13:05
A far from perfect hack to implement debugging of jasmine suites on NodeJs
/**
* Original Author: https://github.com/mhevery
* Mangled for debug support by: Bijou Trouvaille
* The original MIT License can be found here
* https://github.com/mhevery/jasmine-node/blob/master/LICENSE
*/
(function () {
var Path = require ( 'path' );
var _ = require ('underscore');
@bijoutrouvaille
bijoutrouvaille / autotest.js
Created May 22, 2012 11:25
jasmine-node autotest fix osx
var walkdir = require('walkdir');
var collection = require('./spec-collection');
var path = require('path');
var fs = require('fs');
var child_process = require('child_process');
var baseArgv = [];
for(var i = 0; i < process.argv.length; i++) {
if(process.argv[i] !== '--autotest') {