Skip to content

Instantly share code, notes, and snippets.

View wolfedale's full-sized avatar

Pawel Grzesik wolfedale

  • eBay
  • Germany/Berlin
View GitHub Profile
### Keybase proof
I hereby claim:
* I am wolfedale on github.
* I am wolfedale (https://keybase.io/wolfedale) on keybase.
* I have a public key ASB5RXIgFDTfd3JHs7-IyMcigBXzzMnQEf8L2mFvYrkTGgo
To claim this, I am signing this object:
@wolfedale
wolfedale / .go
Created July 21, 2017 10:24
find uniq numbers
package main
import "fmt"
func main() {
b := [13]int{1, 2, 2, 3, 4, 3, 5, 5, 1, 8, 1, 15}
fmt.Println(FindUniq(b))
}
func FindUniq(arr [13]int) []int {
"#<Mail::Message:81436550, Multipart: true, Headers: <Return-Path: <bounce-mc.us2_4528874.1742061-ruby=checktest.test.com@mail66.atl161.mcsv.net>>, <Received: from localhost (localhost.localdomain [127.0.0.1]) by checktest.test.com (Postfix) with ESMTP id E954BB88003 for <ruby@checktest.test.com>; Tue, 21 Jul 2015 12:30:56 +0100 (BST)>, <Received: from checktest.test.com ([127.0.0.1]) by localhost (checktest.test.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id v_PsvmLZms0M for <ruby@checktest.test.com>; Tue, 21 Jul 2015 12:30:42 +0100 (BST)>, <Received: from mail66.atl161.mcsv.net (mail66.atl161.mcsv.net [198.2.138.66]) by checktest.test.com (Postfix) with ESMTP id 06AEEB88002 for <ruby@checktest.test.com>; Tue, 21 Jul 2015 12:30:42 +0100 (BST)>, <Received: from (127.0.0.1) by mail66.atl161.mcsv.net id hlomm41sb4gq for <ruby@checktest.test.com>; Tue, 21 Jul 2015 11:30:40 +0000 (envelope-from <bounce-mc.us2_4528874.1742061-ruby=checktest.test.com@mail66.atl161.mcsv.net>)>, <Date: Tue, 21 Jul 2015 11:30
[37] pry(main)> below 10
[38] pry(main)> 3 + 6 + 9 + 5
=> 23
[39] pry(main)> below 11
[40] pry(main)> 3 + 6 + 9 + 5 + 10
=> 33
[41] pry(main)> below 19
[42] pry(main)> 3 + 6 + 9 + 12 + 15 + 18 + 5 + 10 + 15
@wolfedale
wolfedale / monitoring-test
Created March 20, 2015 15:54
monitoring-test
#!/usr/local/rvm/wrappers/ruby-2.1.2/ruby
require 'mail'
require 'net/ping'
require 'pp'
require 'time'
require 'yaml'
# Wir haben FLock klase.
class FLock