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
/** | |
* Add the correct genitive ending to a given name. | |
*/ | |
private addGenitiveEnding(name : string) : string { | |
if (name.charAt(name.length - 1).match(/[s|z|ß|x]/)) { | |
return name + '’'; | |
} else { | |
return name + 's'; | |
} |
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
* { | |
// https://twitter.com/mmatuzo/status/968479911668338689 | |
-webkit-line-clamp: 3; | |
} |
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
uberspace-configure-webserver enable hsts | |
uberspace-configure-webserver enable nosniff | |
uberspace-configure-webserver enable xframe_deny | |
uberspace-configure-webserver enable xxss_protection |
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
# Kirby .htaccess for Projects by DerZyklop | |
# Source: https://gist.github.com/DerZyklop/609d1e0245c798ceccec7c7fba660041 | |
# Deflate Compression by MimeType | |
<IfModule mod_deflate.c> | |
<FilesMatch "\.(js|jpg|jpeg|gif|png|css)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
SetOutputFilter DEFLATE | |
</FilesMatch> |
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
var i = performance.now(); | |
yourFunction(); | |
performance.now() - i; | |
//Or make a helper function, like this: | |
function performanceTest(testFunction, iterations) { | |
'use strict'; | |
var sum = 0; | |
var start = performance.now(); | |
for (var i = 0; i < iterations; i++) { |
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
0815.ru | |
0wnd.net | |
0wnd.org | |
10minutemail.co.za | |
10minutemail.com | |
123-m.com | |
1fsdfdsfsdf.tk | |
1pad.de | |
20minutemail.com | |
21cn.com |
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
#!/bin/bash | |
# Commandline tools required for this script: | |
# pidof (can be installed with `brew install pidof`) | |
# lockfile (can be installed with `brew install procmail`) | |
# Number of seconds we wait after a file is received before we consider the | |
# batch to be completed. | |
TIMEOUT=2 | |
# Title of the tab in Kaleidoscope |
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
import { EventProcessor, Hub, Integration, Event } from '@sentry/types'; | |
export class PSentryFilterIntegration implements Integration { | |
public static id : string = 'PSentryFilterIntegration'; | |
public name : string = PSentryFilterIntegration.id; | |
constructor(private ignoreErrors : RegExp[]) {} | |
/** | |
* Sets the integration up only once. |
OlderNewer