Skip to content

Instantly share code, notes, and snippets.

INSERT INTO `wc4_recipe_tags` (`tag_id`, `recipe_id`, `status`, `created`, `updated`)
VALUES
(1001157, 2931, "admin", NOW(), NULL),
(1001157, 2993, "admin", NOW(), NULL),
(1001157, 3065, "admin", NOW(), NULL),
(1001157, 3293, "admin", NOW(), NULL),
(1001157, 3480, "admin", NOW(), NULL),
(1001157, 3484, "admin", NOW(), NULL),
(1001157, 3502, "admin", NOW(), NULL),
(1001157, 3903, "admin", NOW(), NULL),
@m4c1ek
m4c1ek / me.json
Last active September 12, 2023 06:43
me.json
{"public_identifier": "maciej-walczy\\u0144ski-ab64aa45", "profile_pic_url": "https://media.licdn.com/dms/image/C4E03AQF1wq04bfkk4g/profile-displayphoto-shrink_800_800/0/1636119709749?e=1700092800&v=beta&t=Re10DsA2c96cqw2oGSBkJDYUN-FavfOEJOrnzjB2WJs", "background_cover_image_url": null, "first_name": "Maciej", "last_name": "Walczy\\u0144ski", "full_name": "Maciej Walczy\\u0144ski", "follower_count": 307, "occupation": "Engineering Manager at Schibsted Tech Polska", "headline": "Tech Lead // Engineering Manager at Schibsted Tech Polska", "summary": null, "country": "PL", "country_full_name": "Poland", "city": "Krakow Metropolitan Area", "state": null, "experiences": [{"starts_at": {"day": 1, "month": 7, "year": 2017}, "ends_at": null, "company": "Schibsted Tech Polska", "company_linkedin_profile_url": "https://www.linkedin.com/company/schibsted-tech-polska/", "title": "Engineering Manager", "description": null, "location": "Cracow, Ma\\u0142opolskie, Poland", "logo_url": "https://media.licdn.com/dms/image/D4D0
@m4c1ek
m4c1ek / frptutorial.swift
Created August 17, 2016 10:41
FRPTutorial snippets
class ImageDownloader {
func downloadImageFor(path:String) -> UIImage? {
guard let url = NSURL(string: path) else { return nil }
guard let data = NSData(contentsOfURL: url) else { return nil }
return UIImage(data: data)
}
}
class CMYKFilter : ImageFilter {
@m4c1ek
m4c1ek / 1. types.md
Last active August 29, 2015 14:27
haskell 2

Haskell has type inference

Haskell is statically typed

:t 'a'
:t 98
:t "asd"
['a','b'] == "ab"
:t (True, 'a')
@m4c1ek
m4c1ek / functions.hs
Last active August 29, 2015 14:27
haskell 1
doubleMe x = x + x
doubleUs x y = doubleMe x + doubleMe y
doubleSmallNumber x = (if x > 100 then x else x*2) + 1
boomBangs xs = [ if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]
length' xs = sum [1 | _ <- xs]
removeNonUppercase st = [ c | c <- st, c `elem` ['A'..'Z']]
@m4c1ek
m4c1ek / carousel
Last active August 29, 2015 14:17
@m4c1ek
m4c1ek / ReactiveCocoaSwift.podspec
Last active August 29, 2015 14:17
ReactiveCocoa Swift
Pod::Spec.new do |s|
s.name = 'ReactiveCocoa-Swift'
s.version = '0.0.1'
s.summary = 'A framework for composing and transforming streams of values'
s.authors = { 'Justin Spahr-Summers' => '@jspahrsummers' }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.homepage = 'https://github.com/ReactiveCocoa/ReactiveCocoa'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
@m4c1ek
m4c1ek / gist:7bfc388a8144ddbeaf5d
Last active September 16, 2016 20:28
AutoLayout

NSLog(@"%@", [[[UIApplication sharedApplication] keyWindow] performSelector:@selector(_autolayoutTrace)]);
po [[UIWindow keyWindow] _autolayoutTrace];

Cocoa layout example

UIViewShowAlignmentRects YES
UIViewShowAlignmentRects