This file contains hidden or 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
<div id="container" style="height: 400px"></div> | |
<script src="https://code.highcharts.com/highcharts.js"></script> |
This file contains hidden or 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
jQuery.fn.visible = function() { | |
return this.css('visibility', 'visible'); | |
}; | |
jQuery.fn.invisible = function() { | |
return this.css('visibility', 'hidden'); | |
}; | |
jQuery.fn.visibilityToggle = function() { | |
return this.css('visibility', function(i, visibility) { |
This file contains hidden or 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
var person = { | |
firstname: 'Default', | |
lastname: 'Default', | |
greet: function(){ | |
return 'Hi ' + this.firstname; | |
} | |
}; | |
var j_doe = Object.create(person); | |
//this creates an object with the properties present in the 'person' object |
This file contains hidden or 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 S3ImageResizer | |
def initialize(collection) | |
@width = 470 | |
@height = 470 | |
@collection = collection | |
@bucket = get_bucket | |
end | |
def start |
This file contains hidden or 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
#Gemfile############## | |
gem 'rqrcode' # QRCode | |
gem 's3' #AWS s3 | |
###################### | |
#application.yml###### | |
AWS_ACCESS_KEY_ID: 'xxx' | |
AWS_SECRET_ACCESS_KEY: 'YYY' | |
AWS_BUCKET_NAME: 'zzz' | |
###################### |
This file contains hidden or 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
# Replace RubyMine2016.1 with the version you have installed | |
# You will lose all configuration options, such as line number display and other style preferences | |
rm -rf ~/.java/.userPrefs/jetbrains/rubymine/ | |
rm -rf ~/.RubyMine2016.1/ |