This file contains 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
/** | |
* My first dabblet-test | |
*/ | |
background: #f06; | |
background: linear-gradient(bottom, #ada976, #390); | |
min-height:100%; |
This file contains 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
# deny access to the top-level git repository: | |
RewriteRule "^(.*/)?\.git" - [F,L] |
This file contains 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
RewriteCond %{QUERY_STRING} !vardump | |
RewriteRule (.*) http://www.example.com/$1?vardump&thereq=%{THE_REQUEST}&reqhost=%{HTTP_HOST}&rem_host=%{REMOTE_HOST} [R=301,L,QSA] |
This file contains 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
# Redirects for 404 to www.example.com | |
# adds "?redirected" to url that www.example.com doesn't redirect back | |
# (basic idea form http://stackoverflow.com/a/11078887/286611) | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule (.*) http://www.example.com/$1?redirected [R=301,L,QSA] | |
# Location of the error document | |
ErrorDocument 404 /404.html |
This file contains 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
{ | |
"cmd": ["gcc", "${file}", "-o", "${file_path}/${file_base_name}", "-Wall"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c", | |
"variants": | |
[ | |
{ | |
"name": "Run", |
This file contains 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
class Test { | |
let coder: String | |
convenience init() { | |
self.init(coder: "default coder") | |
} | |
init(coder: String) { | |
self.coder = coder | |
} |
This file contains 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
struct StructWithArray { | |
var arrayInStruct: [Int] | |
init() { | |
arrayInStruct = [Int]() | |
} | |
} | |
var structs = [StructWithArray()] | |
// playground crashes when using this line |
This file contains 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
/* | |
* Variant 1 | |
*/ | |
if (cond) { | |
// Description of condition holding in if | |
// code... | |
} else { | |
// Description of condition holding in else | |
// code... |