Extensions list
- ESLint
- HTML Snippets
- Material Icon theme
- Rainglow
- Ruby
- ruby-on-rails-snippets
- ruby-snippet
- Simple Ruby ERB
Extensions list
| weight = 85 # Kilograms | |
| height = 1.77 # Meters | |
| bmi = BodyMassIndex.new(weight, height) | |
| bmi.calculate_index # 27.1 |
| exports.up = function(knex, Promise) { | |
| return knex.schema.hasTable('short_urls').then(function(exists) { | |
| if (!exists) { | |
| return knex.schema.createTable('short_urls', function(t) { | |
| t.increments('id').primary(); | |
| t.text('long_url'); | |
| t.string('token', 11); | |
| t.index(['token'], 'short_urls_token_idx') | |
| t.timestamps(); | |
| }); |
| // Update with your config settings. | |
| module.exports = { | |
| development: { | |
| client: 'postgresql', | |
| connection: { | |
| database: 'db_name', | |
| charset: 'utf8' | |
| }, |
| function parse_git_dirty { | |
| git diff --quiet HEAD &>/dev/null | |
| [[ $? == 1 ]] && echo "…" | |
| } | |
| if [ -n __git_ps1 ]; then | |
| function parse_git_branch { | |
| local branch=$(__git_ps1 "%s") | |
| [[ $branch ]] && echo " $branch$(parse_git_dirty)" | |
| } | |
| fi |
| input[type="checkbox"] { | |
| display: none; | |
| & + label { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; | |
| -khtml-user-select: none; | |
| -moz-user-select: none; | |
| -ms-user-select: none; | |
| user-select: none; |
| class GenerateSDKFiles | |
| FILE_NAMES = [ "application.js" ] | |
| ONE_HOUR = 3600 | |
| def generate | |
| Rails.logger.info "Started to sync libraries #{FILE_NAMES}" | |
| FILE_NAMES.each do |file_name| |
| ['Chicho', "Toño"].each do |name| | |
| puts "Ola k ase #{name}" | |
| end | |
| system "node app.js" |
| func makeIncrementer() -> (Int -> Int) { | |
| func addOne(number: Int) -> Int { | |
| return 1 + number | |
| } | |
| return addOne | |
| } | |
| var increment = makeIncrementer() | |
| increment(7) |
| recipients = ['[email protected]'] | |
| mail_body = <<-HTML | |
| Hello world! | |
| HTML | |
| mail = Mail.new do | |
| delivery_method( | |
| :smtp, | |
| :address => "address", |