To reproduce:
- Copy the files below
npm install
- ./node_modules/.bin/coffee app.coffee
Set "repoProblem" to true to make the problem happen, and to false to make the app run WAY faster and not run out of memory. :)
#!/bin/bash | |
# Print usage instructions. | |
printUsage() { | |
cat <<END | |
usage: `basename $0` [-hv] [-s version] [-p prefix] | |
where: | |
prefix - The filename prefix to use in generating the tarball name. | |
version - The version number to use in generating the tarball name. |
To reproduce:
npm install
Set "repoProblem" to true to make the problem happen, and to false to make the app run WAY faster and not run out of memory. :)
Dashing widget to display a random cute picture from http://reddit.com/r/aww
The display of the widget is heavily based on the Image widget, however it does not prepend the src with 'assets' which allows for external images.
You can set a placeholder image in the event that reddit is down, or otherwise unresponse. This is set at the top of random_aww.rb as follows:
Get EC2 CloudWatch stats and graph them in Dashing.
A Dashing widget which shows an image.
To use, in your dashboard.erb file:
<li data-row="1" data-col="1" data-sizex="3" data-sizey="2">
<div data-id="picture" data-view="BigImage" data-image="http://i.imgur.com/JycUgrg.jpg"
style="background-color:transparent;"
data-max="true"
></div>
/* tslint:disable:no-console */ | |
import ld from 'lodash'; | |
import React from 'react'; | |
/** | |
* Use this hook to figure out why a React component is re-rendering. | |
* It will log if any properties in `props` have changed. You should | |
* also pass any state variables into `props` as well. | |
* |
import * as path from 'path'; | |
export interface PrefixFormatOptions { | |
basepath?: string; | |
} | |
/** | |
* This is a debug format, used to prefix the message with tags and filenames. | |
* | |
* This copies values to `message`, and strips values out of the `info` so |
This will show your next GitHub milestone as a Dashing widget. Built on top of the Text widget.
To use:
Add the following to your gemfile
:
gem 'rest-client'
Replace the git_token
, git_owner
, and git_project
in git-milestone.rb as appropriate.