Skip to content

Instantly share code, notes, and snippets.

TrelloClipboard = new class
constructor: ->
@value = ""
$(document).keydown (e) =>
# Only do this if there's something to be put on the clipboard, and it
# looks like they're starting a copy shortcut
if !@value || !(e.ctrlKey || e.metaKey)
return
[ConfigurationType(ConfigurationType.Discovery)]
public class CrudViewConfigurationAction : IConfigurationAction
{
public void Configure(BehaviorGraph graph)
{
var policy = graph.Settings.Get<ViewAttachmentPolicy>();
// grab the default filters before they go away
var policies = policy.ActiveFilters;
@rauhryan
rauhryan / README.md
Last active December 15, 2015 19:49 — forked from mbostock/.block

This chart shows a histogram of a log-normal distribution of time durations. The data is randomly generated: each value is a number representing a duration measured in minutes. The values are then binned at regular intervals using D3’s histogram layout. A custom tick format for the x-axis converts these numbers to dates before passing them through a d3.time.format. The x-axis uses a linear scale, such that the tick values appear in-between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.

See also this histogram of an Irwin–Hall distribution.

/// I need a confirmation
postal.subscribe({
channel: "dialogs",
topic: "confirmation." + postal.instanceId() + ".complete",
callback: function () {
// do some stuff
}
.dt-widget {
&.dt-multiselector {
li {
padding: 5px;
margin: 5px 0px;
@include box-sizing(border-box);
}
.dt-multiselector-display li {
while (herp.length) {
(function(derp){
})(herp.shift());
}
@rauhryan
rauhryan / derp.cs
Created January 23, 2013 20:42
Ajax file upload with jquery.forms
public class AjaxFileUploadWriter<T> : IMediaWriter<T>
{
readonly IOutputWriter _writer;
public AjaxFileUploadWriter(IOutputWriter writer)
{
_writer = writer;
}
public void Write(string mimeType, T resource)
@rauhryan
rauhryan / Notes.md
Created October 29, 2015 21:44
HuBoard Enterprise - 1.6.100 Release notes

HuBoard Enterprise - 1.6.100 Release notes

The 1.6.100 HuBoard Enterprise package release in now available for download from https://enterprise.huboard.com/download.

Check out the git diff on GitHub

Bug fixes

  • Returns not_found if the user isn't logged in and there isn't a board #130
@rauhryan
rauhryan / Notes.md
Last active October 27, 2015 20:35
HuBoard Enterprise - 1.6.98 Release notes

HuBoard Enterprise - 1.6.98 Release notes

The 1.6.98 HuBoard Enterprise package release in now available for download from https://enterprise.huboard.com/download.

Check out the git diff on GitHub

Improvements

  • Added 'assign yourself' link to assignee fly-out #112
  • Adds notifiers via flash message that respond to the issue event queue #111
(function($,window) {
// doc ready
$(function(){
$("select.select").each(function(){
$(this).change(function() {
$.ajax({
url: "url",
data: {