Skip to content

Instantly share code, notes, and snippets.

Coen van der Kamp allcaps

  • Four Digits
  • Arnhem
Block or report user

Report or block allcaps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gesture.py
import sys
import math
import pygame
from itertools import combinations
pygame.init()
maxfps = 30
View gist:0ed06bfae26a81195dc8fe0a4beabc0d
===== docker build release =====
starting docker buildStep 1/2 : FROM app-registry-lime-v2.aldryn.net/corporatewebsite3789-test-3910af7581f147c69140fef8009dea1a.93f6115ad9d54da2b9835290224fe7eb:bld-c3d6b0a8c4b54f05afa63f755742d180
---> b757dde4a269
Step 2/2 : ENV DOMAIN www.intergamma.nl SITE_NAME 'Corporate Website' CACHE_URL db://django_dbcache CMSCLOUD_STATIC_URL https://static.aldryn.com/ SSO_DSN https://7oQrzlqItAO0JukWQ5GG7C5m2yRzLBlzkzjkcbt4Ef3TwslDawpFoGKIP08IZKRt:MGILBcDkeorsmlmFyqjGvKANt7NvSQ9OA0IUA8DrVGp5D4bJYPPwFJvMW46cVrBW@control.divio.com/auth/ GOOGLE_ANALYTICS_UA_CODE UA-57950660-1 DEFAULT_STORAGE_DSN 's3://AKIAIHENSLKJGUY6B24A:W06pzZLfX3Rn1k%2BrXSFlT5BZTSx6UddXgsSnE4wR@corporatewebsite3789-live-21d50d57d68d-90ec9d9.aldryn-media.com.s3-eu-central-1.amazonaws.com/?auth=s3v4&domain=corporatewebsite3789-live-21d50d57d68d-90ec9d9.aldryn-media.com' DOMAIN_REDIRECTS '' DEBUG False SECRET_KEY E3Y8iUT3A0J5wLlADI2QfeGSBeRWdQXoygGfSxF8PGgXbq1z2QAWvjxWfi1H2tFC RELEASE_TIMESTAMP 2017-11-30T14:42:21.4375
View FooSP-metadata.xml
<?xml version="1.0" encoding="utf-8" ?><ns1:EntityDescriptor ID="_4d857fd6-bd89-47ae-bb23-6e984530601d" entityID="FooSP" validUntil="2018-01-25T09:21:37.93626Z" xmlns:ns1="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#"><ns1:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><ns1:KeyDescriptor use="signing"><ns2:KeyInfo><ns2:X509Data><ns2:X509Certificate>MIIEbjCCA1agAwIBAgIJAPnOJ6dFbMIfMA0GCSqGSIb3DQEBBQUAMIGAMQswCQYDVQQGEwJOTDELMAkGA1UECBMCR0UxDzANBgNVBAcTBkFybmhlbTEUMBIGA1UEChMLRm91ciBEaWdpdHMxGjAYBgNVBAMTEUNvZW4gdmFuIGRlciBLYW1wMSEwHwYJKoZIhvcNAQkBFhJjb2VuQGZvdXJkaWdpdHMubmwwHhcNMTcxMDAyMTQwODMwWhcNMjcwOTMwMTQwODMwWjCBgDELMAkGA1UEBhMCTkwxCzAJBgNVBAgTAkdFMQ8wDQYDVQQHEwZBcm5oZW0xFDASBgNVBAoTC0ZvdXIgRGlnaXRzMRowGAYDVQQDExFDb2VuIHZhbiBkZXIgS2FtcDEhMB8GCSqGSIb3DQEJARYSY29lbkBmb3VyZGlnaXRzLm5sMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmr9+s6N33W7B70UTbWxqZo9Ln6+qRYKQHqNwATJ5+GRifqo8SCbanc0ZxRJN8sWZhTTQZfTCgpO5QazmgZgwl+lKRRRA/3mnRqBQD6loYE+XcDe
View nuffic-local-metadata.xml
<?xml version="1.0" encoding="utf-8" ?><ns1:EntityDescriptor ID="_daa152c1-0691-47c4-b113-4ca221b7a8a6" entityID="nuffic-sp" validUntil="2018-01-25T08:51:30.003122Z" xmlns:ns1="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ns2="http://www.w3.org/2000/09/xmldsig#"><ns1:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><ns1:KeyDescriptor use="signing"><ns2:KeyInfo><ns2:X509Data><ns2:X509Certificate>MIIDqTCCApGgAwIBAgIJANlffRONKy/DMA0GCSqGSIb3DQEBCwUAMGsxCzAJBgNVBAYTAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxhbmQxETAPBgNVBAcMCERlbiBIYWFnMQ8wDQYDVQQKDAZOdWZmaWMxDTALBgNVBAsMBEhlbmsxEjAQBgNVBAMMCWxvY2FsaG9zdDAeFw0xNzEwMTcwODUwMjdaFw0yNzEwMTUwODUwMjdaMGsxCzAJBgNVBAYTAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxhbmQxETAPBgNVBAcMCERlbiBIYWFnMQ8wDQYDVQQKDAZOdWZmaWMxDTALBgNVBAsMBEhlbmsxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJFU6vpAbhwnobOf1VT6OWpX2NWaRXsLhSmYa9t3OdHgFKGzyeuLbVNw0Xieb0UNIPOHzy7uh3t52+1tTCS23WcMHh8kOT+tEvQWoe/+4CGdlv9cwjb7Z7NIzCKmE96v88KXar5Fs9NTqrxkkV6nD+G0/fTrcoBPB8ZrjL
View style.css
@import url('https://fonts.googleapis.com/css?family=Pacifico');
h1 {
font-family: 'Pacifico', courier, sans-serif;
color: red;
}
@allcaps
allcaps / 0_reuse_code.js
Created Nov 27, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View fullscreen.html
<!doctype html>
<html>
<head>
<style>
#container {
border: 10px solid red;
padding: 10px;
}
#container.fullscreen {
@allcaps
allcaps / tinymce_template_example_and_dom_manipulation.html
Last active Sep 16, 2015
TinyMCE Template and DOM manipulation on POST example
View tinymce_template_example_and_dom_manipulation.html
<html>
<head>
<script src="//tinymce.cachefly.net/4.2/tinymce.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div class="row">
<div class="container">
<h1>Template and DOM addclass example</h1>
@allcaps
allcaps / .gitignore
Last active Aug 29, 2015
Carousel slider with truncated next and previous images. Mobile first, responsive. I try to stay close to Twitter Bootstrap markup
View .gitignore
bootstrap
jquery
@allcaps
allcaps / postar.py
Last active Aug 29, 2015
Translate *.po file to asterisk strings.
View postar.py
#!/usr/bin/python
import sys, getopt
import re
from string import maketrans
intab = "mnbvcxzlkjhgfdsapoiuytrewq0987654321MNBVCXZLKJHGFDSAPOIUYTREWQ"
outtab = len(intab) * "*"
trantab = maketrans(intab, outtab)
pattern = re.compile('\${.*}')
You can’t perform that action at this time.