Skip to content

Instantly share code, notes, and snippets.

View mdeltito's full-sized avatar
🥨

Mike Del Tito mdeltito

🥨
View GitHub Profile
@mdeltito
mdeltito / README.md
Created July 14, 2016 13:45 — forked from Sinetheta/README.md
Using Yeoman to make a SharePoint 2010 project with REST.

Setting up a new Yeoman project using the sp2010 rest emulator:

  1. Create a new Yeoman project, eg: $ yo webapp my-project.
  2. Install the SharePoint 2010 rest emulator $ npm install sp2010-rest --save-dev.
  3. Add the rest emulator as middleware to any connect servers in your project's [Gruntfile.js][Gruntfile].
  4. Create a 'lists' folder in your project, and fill it with a copy of the json REST response (eg: /_vti_bin/listdata.svc/Documents -> [demo-list.json][json]) for any SharePoint lists you would like to emulate.

Deploying a Yeoman project to a sp2010 server:

  1. Map a network drive to SharePoint.
@mdeltito
mdeltito / index.js
Created August 21, 2017 21:07
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
const hash = require('object-hash')
console.log(hash([{startTime: 1, endTime: 2}, {startTime: 3, endTime: 4}]));
console.log(hash([{startTime: 5, endTime: 6}, {startTime: 7, endTime: 8}]));
### Keybase proof
I hereby claim:
* I am mdeltito on github.
* I am mdeltito (https://keybase.io/mdeltito) on keybase.
* I have a public key ASAZnmpUkkqHXvXu4szT9nLyNqQOLqzgHD-JUyVZpW8Jzwo
To claim this, I am signing this object:
@mdeltito
mdeltito / remote-config.toml
Last active June 6, 2022 08:51
reproduction of a http provider panic
[sources.http_source]
address = "0.0.0.0:30000"
type = "http"
[sinks.http_sink]
inputs = [ "http_source" ]
type = "http"
uri = "https://example.org"
[sinks.http_sink.encoding]