Skip to content

Instantly share code, notes, and snippets.

View ilsenem's full-sized avatar

Ilya Lesnyak ilsenem

  • MAG Development
  • Russian Federation, Tomsk
View GitHub Profile
@ilsenem
ilsenem / githubshorturl.sh
Last active June 10, 2020 12:57
Get short url to Github repo
# Place this in your .bashrc or .profile
# $: github <user> <repo>
github() {
curl -is https://git.io -F "url=https://github.com/$1/$2" | grep Location
}
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
@ilsenem
ilsenem / .editorconfig
Last active September 26, 2020 08:29
#editorconfig Basic .editorconfig settings
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
// Example
// app.js
document.addEventListener("DOMContentLoaded", function (e) {
m.route.mode = "hash";
m.route(document.getElementById("application"), "/", {
"/": m.resolve("pages.home"),
"/findus": m.resolve("pages.findus")
});
});