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
class GoogleApis | |
# compiled from http://code.google.com/apis/ajaxlibs/documentation/ | |
LATEST_VERSIONS = { | |
:jsapi => 'http://www.google.com/jsapi', | |
:jquery => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', | |
:jqueryui => 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js', | |
:prototype => 'http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js', | |
:scriptaculous => 'http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js', | |
:mootools => 'http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools-yui-compressed.js', | |
:dojo => 'http://ajax.googleapis.com/ajax/libs/dojo/1.4.1/dojo/dojo.xd.js', |
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 . | |
dojo.require('dojox.rails'); |
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 'generator' | |
samples = [ | |
{ :xs => [ 1.0, 0.25], :y => 0.98}, | |
{ :xs => [ 1.0, 0.49], :y => 0.82}, | |
{ :xs => [ 1.0, 0.60], :y => 0.41}, | |
{ :xs => [ 1.0, 0.89], :y => 0.31} | |
] | |
# line is the sum of the dot product of the weight (thetas) |
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
.adjustable { color: blue; border-bottom: dotted blue 1px; cursor: col-resize; } | |
.adjusting { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } |
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
[Unit] | |
Description=God: A process monitoring framework in Ruby | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/rvm/bin/deploy_god -c /etc/god/god.conf -l /var/log/god/god.log -D | |
ExecStop=/usr/local/rvm/bin/deploy_god quit | |
[Install] | |
WantedBy=multi-user.target |
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
.btn-file { | |
position: relative; | |
overflow: hidden; | |
& input[type=file] { | |
position: absolute; | |
top: 0; | |
min-width: 100%; | |
max-width: 100%; | |
min-height: 100%; |
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
$progress-border-radius: $border-radius-base !default; | |
progress { | |
color: $progress-bar-bg; | |
background-size: auto; | |
width: 100%; | |
height: 20px; | |
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15); | |
border-radius: $progress-border-radius; | |
margin-bottom: 20px; |
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
# --skip-turbolinks --skip-test --database=postresql | |
file '.editorconfig', <<-CODE | |
[*] | |
indent_style = space | |
indent_size = 2 | |
tab_width = 8 | |
charset = utf-8 | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true |