Skip to content

Instantly share code, notes, and snippets.

View brunophilipe's full-sized avatar

Bruno Philipe brunophilipe

View GitHub Profile
@brunophilipe
brunophilipe / output.txt
Last active August 29, 2015 14:05
People Generator
Generating 10000000 People
Range Count Calcul. Actual Deviat.
0-4 682781 6.83 6.82 -0.01
5-9 729411 7.29 7.30 +0.01
10-14 729765 7.30 7.30 +0.00
15-19 718607 7.19 7.18 -0.01
20-24 673966 6.74 6.74 +0.00
25-29 689531 6.90 6.89 -0.01
30-34 728300 7.28 7.29 +0.01
35-39 806730 8.07 8.07 +0.00
@brunophilipe
brunophilipe / gist:c0798411e6a405982435e85ed23b1fb3
Created April 11, 2016 15:58
Google Static Maps API Call
https://maps.googleapis.com/maps/api/staticmap?size=576x576&zoom=12&center=41.386162%2C%202.172800&style=feature%3Aall%7Cvisibility%3Aoff&style=feature%3Aroad%7Celement%3Ageometry%7Ccolor%3A0x000000%7Csaturation%3A0%7Cweight%3A0.2%7Cvisibility%3Aon&scale=2&key=YOUR_API_KEY
@brunophilipe
brunophilipe / GuardURLProtocol.swift
Last active March 12, 2023 13:19
GuardURLProtocol class to monitor all connections initiated by app
//
// GuardURLProtocol.swift
// URLProtocol
//
// Created by Bruno Philipe on 16/2/17.
// Copyright © 2017 Bruno Philipe. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
@brunophilipe
brunophilipe / keybase.md
Created February 11, 2018 21:53
keybase.md

Keybase proof

I hereby claim:

  • I am brunophilipe on github.
  • I am brunoph (https://keybase.io/brunoph) on keybase.
  • I have a public key ASCMoJYra-ABfBqiL1IiWUBARC5LoMrYouKrHpzIw_Xj6Ao

To claim this, I am signing this object:

@brunophilipe
brunophilipe / UIViewController+Segue.swift
Last active July 4, 2018 21:10
Type-safe segues in Swift 4
import UIKit
/// A Segue is a type-safe form of a UI segue.
protocol Segue
{
/// The identifier of this segue
var identifier: String { get }
}
extension UIViewController
@brunophilipe
brunophilipe / BPPointerShapeHelper.h
Last active May 13, 2020 18:28
UIButton.pointerShapeProvider workaround
//
// BPPointerShapeHelper.h
//
// Created by Bruno Philipe on 12.05.20.
// Copyright © 2020 Bruno Philipe. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@brunophilipe
brunophilipe / NoInsetsTableView.swift
Created August 7, 2020 15:41
NoInsetsTableView.swift
//
// NoInsetsTableView.swift
// Mastonaut
//
// Created by Bruno Philipe on 04.07.20.
// Copyright © 2020 Bruno Philipe. All rights reserved.
//
import Foundation
class NoInsetsTableView: NSTableView {
@brunophilipe
brunophilipe / custom.css
Last active October 9, 2024 19:28
Deflate Mastodon v4.3 Advanced Theme
@media screen and (min-width:630.02px) {
.column, .drawer { padding: 0; padding-inline-end: 2px; padding-inline-start: 2px; }
}
.column { width: 330px; }
.notification-ungrouped { padding: 16px 16px 10px; }
::-webkit-scrollbar { height: 2px; width: 2px; }
::-webkit-scrollbar-thumb { border: none; border-radius: 0; box-shadow: none; width: 2px; }