I hereby claim:
- I am mthomps on github.
- I am mthomps (https://keybase.io/mthomps) on keybase.
- I have a public key ASAkGMEXUam-oe6qgbgQMMAkSqfdihGXznzf0Wwz-_JqWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def flatten(array) | |
| result = [] | |
| array.each do |item| | |
| if item.is_a? Integer | |
| result << item | |
| else | |
| result.concat(flatten(item)) | |
| end | |
| end |
| { | |
| "auto_complete_commit_on_tab": true, | |
| "auto_complete_delay": 35, | |
| "auto_match_enabled": false, | |
| "color_scheme": "Packages/Boxy Theme/schemes/Boxy Solarized Light.tmTheme", | |
| "drag_text": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| "*.pyc", |
| def add_param_to_url(url, param_key, param_val) | |
| query = URI.parse(url).query | |
| if query.present? | |
| params = CGI::parse(query) | |
| if params.present? && params[param_key].exclude?(param_val) | |
| return "#{url}&#{param_key}=#{param_val}" | |
| end | |
| else | |
| return "#{url}?#{param_key}=#{param_val}" | |
| end |