Skip to content

Instantly share code, notes, and snippets.

@chimpinano
chimpinano / gist:0eb85ab499f5ef978405
Created September 22, 2015 15:24 — forked from irobinson/gist:1990828
User File Manager Knockout View
<div id="dnnUserFileManager" class="dnnFileManager dnnClear">
<div class="fm-explorer-wrap dnnLeft">
<div class="fm-breadcrumb">
<p>
<span data-bind="foreach: currentBreadcrumbs">
<!-- ko if: id === $root.chosenFolderId() -->
<span data-bind="text: name"></span>
<!-- /ko -->
<!-- ko if: id !== $root.chosenFolderId() -->
<a href="#" data-bind="text: name, click: $root.goToFolder"></a> /
@chimpinano
chimpinano / sendmail
Last active August 29, 2015 14:27 — forked from claudiumstoica/sendmail
a script to send emails via SendGrid C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.Net.Mail;
using SendGrid
namespace SendGridMail
var request = new XMLHttpRequest();
request.open('POST', '/home/UpdateStats', false);
request.send(null);
if (request.status == 200)
postMessage(request.responseText);
<!DOCTYPE html>
<html>
<head>
<title>Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script>
</head>
<body>
cd ~/Downloads
curl -L https://www.atom.io/api/updates/download -A "Atom/0.1 CFNetwork/1.5" > Atom.zip
unzip Atom.zip
mv Atom.app /Applications
rm Atom.zip