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
| # frozen_string_literal: true | |
| require 'datadog_api_client' | |
| require 'json' | |
| class AddCustomTagGroups | |
| ALL_METRICS_FILE = "metrics.txt" | |
| METRIC_TYPES_FILE = "metric_types.json" | |
| METRIC_TAGS_FILE = "metric_tags.json" | |
| TAGS_TO_EXCLUDE = [ |
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
| name: academia | |
| root: ~/ | |
| on_project_start: ssh-add ~/.ssh/id_rsa | |
| startup_window: host | |
| windows: | |
| - sync: sync_academia_app | |
| - server: | |
| layout: main-horizontal |
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
| coffeescript: | |
| config_file: .coffeescript_style.json | |
| scss: | |
| config_file: .scss_style.yml | |
| ruby: | |
| config_file: .ruby_style.yml | |
| javascript: |
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 'ruby-prof' | |
| MODES = [ | |
| RubyProf::WALL_TIME, | |
| RubyProf::PROCESS_TIME, | |
| RubyProf::CPU_TIME, | |
| RubyProf::ALLOCATIONS, | |
| RubyProf::MEMORY, | |
| RubyProf::GC_TIME, | |
| RubyProf::GC_RUNS, |
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
| coffeescript: | |
| config_file: .coffeescript_style.json | |
| scss: | |
| config_file: .scss_style.yml | |
| ruby: | |
| enabled: .ruby-style.yml | |
| javascript: |
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
| AllCops: | |
| Exclude: | |
| - "vendor/**/*" | |
| - "public/**/*" | |
| - "tmp/**/*" | |
| - "db/schema.rb" | |
| UseCache: false | |
| Style/AccessModifierIndentation: | |
| Description: Check indentation of private/protected visibility modifiers. |
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 | |
| win_class='emacs.Emacs' | |
| # get list of all windows matching with the class above | |
| win_list=$(wmctrl -x -l | grep -i $win_class | awk '{print $1}' ) | |
| # get id of the focused window | |
| active_win_id=$(xprop -root | grep '^_NET_ACTIVE_W' | awk -F'# 0x' '{print $2}') | |
| if [ "$active_win_id" == "0" ]; then | |
| active_win_id="" |
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 'test/unit' | |
| def combine_anagrams(words) | |
| end | |
| class TestCombineAnagrams < Test::Unit::TestCase | |
| @input = %w[cars for potatoes racs four scar creams scream] | |
| @output = [ ['cars', 'racs', 'scar'], | |
| ['four'], | |
| ['for'], |