Skip to content

Instantly share code, notes, and snippets.

View dougrchamberlain's full-sized avatar

Doug Chamberlain dougrchamberlain

View GitHub Profile
"Beginners .vimrc
" v0.1 2012-10-22 Philip Thrasher
"
" Important things for beginners:
" * Start out small... Don't jam your vimrc full of things you're not ready to
" immediately use.
" * Read other people's vimrc's.
" * Use a plugin manager for christ's sake! (I highly recommend vundle)
" * Spend time configuring your editor... It's important. Its the tool you
" spend 8 hours a day crafting your reputation.
"Beginners .vimrc
" v0.1 2012-10-22 Philip Thrasher
"
" Important things for beginners:
" * Start out small... Don't jam your vimrc full of things you're not ready to
" immediately use.
" * Read other people's vimrc's.
" * Use a plugin manager for christ's sake! (I highly recommend vundle)
" * Spend time configuring your editor... It's important. Its the tool you
" spend 8 hours a day crafting your reputation.
function makeTestData(args){
let newObject = {}
if(args.type === 'public'){
newObject.public = dosomeThing();
}
newObject.name = CreateRandomName();
}
day hour value
1 1 100
1 2 100
1 3 100
1 4 100
1 5 0
1 6 2
1 7 0
1 8 9
1 9 25
day hour value
1 1 16
1 2 20
1 3 0
1 4 0
1 5 0
1 6 2
1 7 0
1 8 9
1 9 25
--old version works
<HttpGet>
Public Function Find(ByVal planId As Integer, ByVal id As Integer) As StepModel
Dim results As StepModel = stepsDAL.GetStep(id)
Return results
End Function
--new version doesn't work
<HttpGet>
Public Function Find(ByVal planId As Integer, ByVal id As Integer) As StepModel
char[] inputString = "abcdefghijklmnopqrstuvwxyz ".toCharArray();
char[] row = new char[16];
int inputStringCursor = 0;
int rowCursor = 15;
row[15] = inputString[inputStringCursor];
//
// FILE: dht11.cpp
// VERSION: 0.4.1
// PURPOSE: DHT11 Temperature & Humidity Sensor library for Arduino
// LICENSE: GPL v3 (http://www.gnu.org/licenses/gpl.html)
//
// DATASHEET: http://www.micro4you.com/files/sensor/DHT11.pdf
//
// HISTORY:
// George Hadjikyriacou - Original version (??)
@dougrchamberlain
dougrchamberlain / example
Created September 15, 2015 12:28
sample of moving urls out of methods
angular
.module("stepManager")
.factory("stepManagerService", ["$resource", "$q", "$filter", "stepTypeService", "stepValidationService",
function ($resource, $q, $filter, stepTypeService, stepValidationService) {
"use strict";
var internalResource = $resource("/steps/:id", {id: "@id"}, {
"delete": {method: "DELETE", params: {id: "@id"}},
"new": {method: "POST"}
});