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
package bakery | |
import ( | |
"fmt" | |
"time" | |
) | |
type Order = int | |
type Cake struct { |
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
package main | |
import ( | |
"log" | |
"time" | |
) | |
// Sends messages over the channel | |
func sender(ch chan<- string) { | |
for i := range 5 { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Colors Preview</title> | |
<style> | |
* { |
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
Show hidden characters
{ | |
"extends": "eslint:recommended", | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"parserOptions": { | |
"ecmaFeatures": { |
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
[ | |
// Sidebar rows | |
{ | |
"class": "tree_row", | |
"layer0.opacity": 0.0, | |
"layer1.opacity": 0.0, | |
"layer1.inner_margin": [1,1] | |
}, | |
// Sidebar row hover | |
{ |
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
{ | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/SublimeLinter/Flatland Dark (SL).tmTheme", | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"env": | |
{ | |
"PATH": "/usr/local/bin/elixir" | |
}, | |
"file_exclude_patterns": |
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
[ | |
// {"keys": ["ctrl+m"], "args": {"action": "matching_pair"}, "command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.matching_pair"} ] }, | |
// Show/Hde Elm Type panel | |
// { "keys": ["alt+i"], "command": "elm_show_type_panel", "context": [ { "key": "selector", "operator": "equal", "operand": "source.elm" } ] }, | |
// { "keys": ["alt+i"], "command": "hide_panel", "context": [ { "key": "selector", "operator": "equal", "operand": "source.elm" } ] }, | |
// Expand abbreviation | |
{ |
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
Regex for PHP associative array keys that lack quotes | |
------------------------------------------------------ | |
Find with: \$([a-z0-9_]*)\[(?!('|"))([a-z0-9_]*)(?!('|"))\] | |
Replace with: $\1['\3'] | |
\1 and \3 relate to groups in the expression that are whatever what's inside parentheses. | |
The first and third group ([a-z0-9_]*) are equal and each one |