I hereby claim:
- I am zbrox on github.
- I am zbrox (https://keybase.io/zbrox) on keybase.
- I have a public key ASBV7tsIViibbe2ouMUqyiqyv4wD61A0G49t5dsYZbqrhwo
To claim this, I am signing this object:
# This image is made for building static binaries linked against musl | |
# It includes OpenSSL compiled against musl-gcc | |
# I think clux/muslrust:latest uses nightly | |
FROM clux/muslrust AS build | |
WORKDIR /usr/src | |
# Update CA Certificates | |
RUN apt update -y && apt install -y ca-certificates | |
RUN update-ca-certificates |
func colorWithHexString (hex:String) -> UIColor { | |
var cString:String = hex.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString | |
if (cString.hasPrefix("#")) { | |
cString = cString.substringFromIndex(advance(cString.startIndex, 1)) | |
} | |
if (countElements(cString) != 6) { | |
return UIColor.grayColor() | |
} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
$iso_array = array ( | |
'AFG' => 'Afghanistan', | |
'ALB' => 'Albania', | |
'DZA' => 'Algeria', | |
'ASM' => 'American Samoa', | |
'AND' => 'Andorra', | |
'AGO' => 'Angola', | |
'AIA' => 'Anguilla', | |
'ATA' => 'Antarctica', |
hr { | |
height: 3px; | |
border: 0; | |
background-color: #c3c3c3; | |
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#f7f6f4), to(#f7f6f4), color-stop(50%, #fff)); | |
background-image: -webkit-linear-gradient(left, #f7f6f4, #fff, #f7f6f4); | |
background-image: -moz-linear-gradient(left, #f7f6f4, #fff, #f7f6f4); | |
background-image: -ms-linear-gradient(left, #f7f6f4, #fff, #f7f6f4); | |
background-image: -o-linear-gradient(left, #f7f6f4, #fff, #f7f6f4); | |
} |
qlmanage -t -s 1000 -o . picture.svg |
require 'rubygems' | |
require 'json' | |
require "swedishgrid" | |
def convert(coords) | |
grid = SwedishGrid.new(:rt90) | |
reversed = grid.grid_to_geodetic(coords[1], coords[0]) | |
[reversed[1], reversed[0]] | |
end |
source :rubygems | |
# We are not loading Active Record, nor Active Resources etc. | |
# We can do this in any app by simply replacing the rails gem | |
# by the parts we want to use. | |
gem "actionpack", "~> 3.2" | |
gem "railties", "~> 3.2" | |
gem "tzinfo" | |
# Let's use thin |