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
4r5e | |
5h1t | |
5hit | |
a55 | |
anal | |
anus | |
ar5e | |
arrse | |
arse | |
ass |
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
const points = { | |
'immortal': 7, | |
'diamond': 6, | |
'platinum': 5, | |
'gold': 4, | |
'silver': 3, | |
'bronze': 2, | |
'iron': 1, | |
}; |
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
Param( | |
[Parameter(Mandatory=$true)] $path | |
) | |
$proxyHtm = @" | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" > | |
<head> | |
<title>Repo proxy</title> | |
</head> |
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
-- Redis script to implement a leaky bucket | |
-- see https://medium.com/callr-techblog/rate-limiting-for-distributed-systems-with-redis-and-lua-eeea745cb260 | |
-- (c) Florent CHAUVEAU <florent.chauveau@gmail.com> | |
local ts = tonumber(ARGV[1]) | |
local cps = tonumber(ARGV[2]) | |
local key = KEYS[1] | |
-- remove tokens < min (older than now() -1s) | |
local min = ts -1 |
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
@model Epiphany.Web.Models.PagerViewModel | |
@{ | |
var showPages = 5; | |
var maxPage = (int) Math.Ceiling((decimal) Model.Total/Model.PageSize); | |
} | |
@*[[ PAGER PAGE:@Model.Page PAGESIZE:@Model.PageSize TOTAL:@Model.Total MAXPAGE:@maxPage ]]*@ | |
<div class="pagination"> |
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
kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create-f - |
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
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
namespace MyUmbracoSite.Core.Extensions | |
{ | |
public static class StringExtensions | |
{ | |
// http://bendetat.com/the-greatest-string-formatwith-implementation-in-the-world.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
public class ContourFormRefreshPayload | |
{ | |
public Guid Id { get; set; } | |
} | |
public class ContourFormCacheRefresher : JsonCacheRefresherBase<ContourFormCacheRefresher> | |
{ | |
public static string Id = "AA2970FD-8785-42C2-A289-A7A6614CAE45"; | |
protected override ContourFormCacheRefresher Instance => this; | |
public override Guid UniqueIdentifier => new Guid(Id); |
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
#!/usr/bin/env node | |
var _ = require('underscore'); | |
var fs = require('fs'); | |
var Q = require('q'); | |
var argv = require('optimist') | |
.usage('Usage: $0 -base [directory') | |
.demand(['base']) | |
.describe('base', 'Media directory') | |
.argv; |
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
@media screen and (max-width:840px) { | |
.wrapper { | |
width: 100%; | |
padding-left: 0; | |
padding-right: 0; | |
background: none !important; | |
} | |
.dashboard, .content-main { | |
width: auto ; |
NewerOlder