I hereby claim:
- I am pawelniewie on github.
- I am pin (https://keybase.io/pin) on keybase.
- I have a public key whose fingerprint is 0C9C D2EB A851 031D C1F2 C287 40DB DD41 6DBB 69BB
To claim this, I am signing this object:
def valid_pesel?(pesel) | |
false if pesel.size != 11 | |
(a, b, c, d, e, f, g, h, i, j, k) = pesel.chars.map(&:to_i) | |
checksum = a + 3*b + 7*c + 9*d + e + 3*f + 7*g + 9*h + i + 3*j + k | |
checksum % 10 == 0 | |
end | |
no = gets.to_i |
//= require_self | |
//= require service_buttons | |
//= require error_reporting | |
$(function () { | |
var token = $('meta[name=token]').attr('content'); | |
AJS.$.ajaxPrefilter(function(options) { | |
if (token) { | |
options.url += ~options.url.indexOf('?') ? '&' : '?'; |
#!/bin/env ruby | |
require 'json' | |
require 'time' | |
cutoff = Time.parse('2016-08-10') | |
log = JSON.load(ARGF) | |
entries_per_day = Hash.new{ |hash, key| hash[key] = [] } |
#!/usr/bin/env swift | |
import Cocoa | |
import AddressBook | |
var ab = ABAddressBook.sharedAddressBook() | |
func findByFirstAndLastName(firstName: String, lastName: String) -> [ABRecord] { | |
let comparison: ABSearchConjunction = CFIndex(kABContainsSubStringCaseInsensitive.rawValue) | |
/* | |
* Copyright (C) 2007 The Guava Authors | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package main | |
import ( | |
"os/exec" | |
"os/user" | |
"testing" | |
"net/http" | |
"io/ioutil" | |
"fmt" | |
"github.com/stretchr/testify/assert" |
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
angular.module('$strap.directives').directive('bsDatetimepicker', [ | |
'$timeout', | |
'$strapConfig', | |
function ($timeout, $strapConfig) { | |
var isAppleTouch = /(iP(a|o)d|iPhone)/g.test(navigator.userAgent); | |
var regexpMap = function regexpMap(language) { | |
language = language || 'en'; | |
return { | |
'/': '[\\/]', |