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
$string = "floccinaucinihilipilification"; | |
$characters = array_unique(str_split($string)); | |
$count = []; | |
foreach($characters as $char) { | |
$count[$char] = substr_count($string, $char); | |
} | |
// Order the array |
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 TestClass { | |
const aVariable = 'test'; | |
} | |
echo TestClass::aVariable; |
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
TYPE | CONTENT | PRIORITY | INDENT | AUTHOR | RESPONSIBLE | DATE | DATE_LANG | TIMEZONE | |
---|---|---|---|---|---|---|---|---|---|
task | Month Before: | 1 | 1 | Josh (17592616) | Josh (17592616) | en | Europe/London | ||
task | Confirm speakers for date | 4 | 2 | Josh (17592616) | Josh (17592616) | every 3rd thursday | en | Europe/London | |
task | Get speaker twitter handles | 4 | 2 | Josh (17592616) | Josh (17592616) | every 3rd thursday | en | Europe/London | |
task | Invite speakers to LeicesterJS slack | 4 | 2 | Josh (17592616) | Josh (17592616) | every 3rd thursday | en | Europe/London | |
task | Get talk titles from speakers | 4 | 2 | Josh (17592616) | Josh (17592616) | every 3rd thursday | en | Europe/London |
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
# Cache Images for 1 Year | |
<filesMatch ".(jpg|jpeg|png|gif|ico)$"> | |
Header set Cache-Control "max-age=31536000, public" | |
</filesMatch> | |
# But Cache JS and CSS for a month! | |
<filesMatch ".(css|js)$"> | |
Header set Cache-Control "max-age=2628000, public" | |
</filesMatch> |
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
{"lastUpload":"2020-12-13T15:29:59.665Z","extensionVersion":"v3.4.3"} |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.tabSize": 2, | |
"files.autoSave": "onFocusChange", | |
"php.validate.run": "onType", | |
"vsicons.dontShowNewVersionMessage": true, | |
"workbench.colorTheme": "Monokai", | |
"workbench.colorCustomizations": { | |
"activityBar.foreground": "#66d9efbf" | |
}, |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models, migrations | |
class Migration(migrations.Migration): | |
dependencies = [ | |
('resources', '0004_editablemodel'), |
NewerOlder