This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
//=require_directory . | |
//=require_tree ../../widgets | |
*/ | |
// ---------------------------------------------------------------------------- | |
// Sass declarations | |
// ---------------------------------------------------------------------------- | |
$background-color: #222; | |
$text-color: #fff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#In rails this is located in the config folder | |
# if you have the db defined in database.yml, you can set the establish_connection to establish_connection("db2") | |
development: | |
adapter: mysql2 | |
database: indicator_development | |
pool: 5 | |
username: root | |
password: root | |
socket: /var/run/mysqld/mysqld.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#a bunch of dirty hacks right now to the original countdown widget | |
#original: https://gist.github.com/ruleb/5353056 | |
class Dashing.Countdown extends Dashing.Widget | |
ready: -> | |
setInterval(@startCountdown, 500) | |
startCountdown: => | |
count_to_close = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rufus/scheduler' | |
require 'json' | |
require 'httparty' | |
require 'rake' | |
################################################################## | |
### INITIALIZERS | |
################################################################## | |
@start_day = Date.today.beginning_of_day | |
@finish_day = Date.today.end_of_day |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$('#container').highcharts({ | |
chart: { | |
type: 'bar' | |
}, | |
title: { | |
text: 'Leading Indicators' | |
}, | |
subtitle: { | |
text: 'Source: Rbandits::Trdopt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## connecting | |
sudo chmod 0600 ~/Downloads/sandbox.pem | |
ssh -i ~/Downloads/sandbox.pem [email protected] | |
## create users | |
sudo adduser mike | |
## add user to admin | |
sudo adduser mike admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$('#myFormSubmit').click(function(e){ | |
e.preventDefault(); | |
alert($('#myField').val()); | |
$('#myModal').modal('hide') | |
/* | |
$.post('http://path/to/post', | |
$('#myForm').serialize(), | |
function(data, status, xhr){ | |
// do something here with response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Default task. | |
grunt.registerTask('default', 'lint'); | |
grunt.registerTask('lint', ['jshint', 'csscss']); | |
// jenkins should run this | |
grunt.registerTask('build', 'jshint clean copy requirejs cssmin'); | |
grunt.loadNpmTasks('grunt-contrib'); | |
grunt.loadNpmTasks('grunt-contrib-jshint'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xinput --set-ptr-feedback "15" 0 30 10 | |
tpkbdctl -s 255 |
OlderNewer