Skip to content

Instantly share code, notes, and snippets.

View chrismatthieu's full-sized avatar
🚀
Hacking the metaverse!

Chris Matthieu chrismatthieu

🚀
Hacking the metaverse!
View GitHub Profile
@chrismatthieu
chrismatthieu / upload.js
Created October 31, 2021 20:36 — forked from polluterofminds/upload.js
Pinata Upload JavaScript
const getApiConfig = async () => {
const config = {
headers: {
Authorization: `Bearer ${PinataJWT}`,
}
};
return config;
};
export const handleUpload = async (selectedFiles, customName, wrapWithDirectory) => {
@chrismatthieu
chrismatthieu / 1.js
Created March 12, 2015 03:33 — forked from zankich/1.js
// curl -X POST -d '{"devices": "db895340-c344-11e4-9f09-df7578d68eac", "payload": [{"pin":9, "mode":1, "value":1}, {"pin":13, "mode":1, "value":1}]}' http://meshblu.octoblu.com/messages --header "meshblu_auth_uuid: db895340-c344-11e4-9f09-df7578d68eac" --header "meshblu_auth_token: d0a9f0d7e321657a38d25dd492492ffed0baf773"
var Cylon = require('cylon');
Cylon.robot({
connections: {
arduino: { adaptor: 'firmata', port: '/dev/tty.usbmodem1411' },
skynet: { adaptor: 'skynet', uuid: "db895340-c344-11e4-9f09-df7578d68eac", token: "d0a9f0d7e321657a38d25dd492492ffed0baf773" }
},
@chrismatthieu
chrismatthieu / stuns
Created July 6, 2013 21:27 — forked from zziuni/stuns
# source : http://code.google.com/p/natvpn/source/browse/trunk/stun_server_list
# A list of available STUN server.
stun.l.google.com:19302
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
stun01.sipphone.com
stun.ekiga.net
@chrismatthieu
chrismatthieu / script.coffee
Created July 9, 2012 21:51 — forked from paulbjensen/script.coffee
A script used to transmit geo-located tweets about Nike to Dashku
# The script that I use to broadcast tweets about
# Nike to Dashku's demo account, in CoffeeScript.
# require some npm libraries
Twit = require 'twit'
analyze = require('Sentimental').analyze
Placefinder = require 'placefinder'
dashku = require 'dashku'
# Set your API Key
@chrismatthieu
chrismatthieu / LICENSE.txt
Created June 29, 2012 23:33 — forked from sindresorhus/LICENSE.txt
Photo Booth (140byt.es)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
<!doctype html>
<!--
To run this demo you need to have seriously and the nightvision effect.
wget https://raw.github.com/brianchirls/Seriously.js/master/seriously.js
mkdir effects
cd effects
wget https://raw.github.com/brianchirls/Seriously.js/aacdc75665d98a52c8a0c2e0e0cbbf85b136a151/effects/seriously.nightvision.js
-->
<html>
@chrismatthieu
chrismatthieu / weight.xml
Created August 2, 2011 00:36 — forked from mheadd/weight.xml
SRGS grammar in XML format for capturing weight information.
<?xml version="1.0" encoding="ISO-8859-1"?>
<grammar xmlns="http://www.w3.org/2001/06/grammar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/06/grammar http://www.w3.org/TR/speech-grammar/grammar.xsd"
version="1.0" xml:lang="en-US" mode="voice" root="main">
<!-- Main gramar rule -->
<rule id="main" scope="public">
<item>
<ruleref uri="#first" />
</item>
@chrismatthieu
chrismatthieu / gist:966727
Created May 11, 2011 15:53 — forked from aaronpk/gist:966720
Email beta signup form saved to Google Docs
<!-- Put this in a file called post.php -->
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://spreadsheets.google.com/formResponse?formkey=your-google-form-key');
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(
'entry.0.single' => date('Y-m-d H:i:s'),
'entry.1.single' => $_POST['email'],
'entry.2.single' => $ref,
@chrismatthieu
chrismatthieu / nodeconf_2011.md
Created May 6, 2011 23:12 — forked from guybrush/nodeconf_2011.md
a list of slides from nodeconf 2011