Skip to content

Instantly share code, notes, and snippets.

View cvanhasselt's full-sized avatar
🙃

Chris van Hasselt cvanhasselt

🙃
View GitHub Profile
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# dhis api access
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# https://www.dhis2.org/doc/snapshot/en/developer/html/apas07.html
# https://github.com/jason-p-pickering/datim-validation
# http://www.r-fiddle.org/#/fiddle?id=wHglXleC&version=1
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# setup =======================================================================
require(RCurl)
@cvanhasselt
cvanhasselt / Trying-Angles.markdown
Created May 30, 2014 14:47
A Pen by Chris van Hasselt.

Trying Angles

I was trying to come up with some simple css based triangle doodles that could be used for UI control arrows. Simple easy-peasy stuff, if anyone else needs it, feel free....

A Pen by Chris van Hasselt on CodePen.

License.

@cvanhasselt
cvanhasselt / dabblet.css
Created May 22, 2014 20:18
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@cvanhasselt
cvanhasselt / urlCheck.js
Created March 14, 2013 21:20
Simple Javascript code to ping a Sharepoint subsite to see if it exists, then go there if it does. If not, return a notification to the user. I used this with a SP 2007 BDC DataView list where each item has a record in a database, and an associated SP sub-site. It saved the users a lot of time, since instead of losing context and going to a blan…
<script type="text/javascript">
var badUrlHash = {}; // memoizes badUrls. cuts down on Net Traffic
var urlCheck = (function (anAddress) {
var badUrlFunc = function (x) {
// return a message
if (!(x in badUrlHash)) {
// add to the badUrlHash, so we don't ping it again.
badUrlHash[x] = true;