$ uname -r
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
| {"lastUpload":"2018-10-30T13:26:58.960Z","extensionVersion":"v3.2.0"} |
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
| # editorconfig.org | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| insert_final_newline = true |
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
| #!/bin/bash | |
| echo "Instalando pacotes globais via NPM..." | |
| npm i -g sails ember-cli nodemon bower pm2 | |
| echo "Pacotes globais instalados." |
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
| #!/bin/bash | |
| #! Usage: ./iHate8080Port.sh range | |
| awk -v loop=1 -v range=$1 'BEGIN{ | |
| srand() | |
| do { | |
| numb = 1 + int(rand() * range) | |
| if (!(numb in prev)) { | |
| print numb | |
| prev[numb] = 1 |
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
| require File.expand_path('orm/file_handler') | |
| require 'securerandom' | |
| class YAMLAdapter | |
| attr_accessor :id, :persisted | |
| $path = 'db' | |
| $file = "contact.txt" | |
| def initialize(args) | |
| args.each do |key, value| |
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
| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with the same name as the keys in <tt>filtering_params</tt> | |
| # with their associated values. Most useful for calling named scopes from |
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
| # Keep these files out of the repo | |
| /wp-content/themes/twenty* | |
| /wp-content/upgrade | |
| /wp-content/uploads | |
| /sitemap.* | |
| /wp-config.php | |
| *.sql | |
| # Hidden files | |
| *.DS_Store |
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
| [ $[ $RANDOM % 6 ] = 0 ] && echo "Shoot" || echo "Click" |
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
| import Ember from 'ember'; | |
| export function conditional(params/*, hash*/) { | |
| if (arguments.length > 3) { | |
| throw new Error("Handlerbars Helper 'conditional' needs 3 parameters"); | |
| } | |
| var first = params[0], | |
| operator = params[1], | |
| last = params[2]; |
NewerOlder