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'), |
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
{"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
# 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
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
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
$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
$string = "floccinaucinihilipilification"; | |
// First split the string to an array and then get the unique characters so we don't double count | |
$characters = array_unique(str_split($string)); | |
$count = []; | |
// Iterate through the characters list and create an associative array of the characters and their count | |
foreach($characters as $char) { | |
$count[$char] = substr_count($string, $char); |
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
import { Client } from "node-statsd-client"; | |
import { IGraphiteController } from "../interfaces"; | |
const PREFIX = "MY-API-NAME"; | |
export default class GraphiteController implements IGraphiteController { | |
private _client: any; | |
// the graphite port will always be this for every environment | |
private _port: number = 8125; | |
private static _instance: GraphiteController; |
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
import { Router } from "express"; | |
import { Config } from "./configuration"; | |
// Import or require the graphite controller and activity labels | |
import { GraphiteController, GraphiteLabel } from "../graphite"; | |
const router = Router() as Router; | |
// Load your config | |
const config = Config.getConfig(); |
OlderNewer