Skip to content

Instantly share code, notes, and snippets.

View wbroek's full-sized avatar

Wouter van den Broek wbroek

View GitHub Profile
@wbroek
wbroek / .htaccess
Last active April 18, 2017 14:34 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
// TextView subclass that replicates TVOS movies app
// Also made a quick presentation controller
// Just connect the delegate to the ViewController in IB
// and set the TextView class to FocusTextView
import UIKit
class TextPresentationViewController:UIViewController {
let label = UILabel()
let blurStyle = UIBlurEffectStyle.Dark
@wbroek
wbroek / Podfile
Created December 16, 2016 15:53
Set swift target for Cocoapods
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
0x5C181633491545D23DBF9439B5875f1bf0c716c7
@wbroek
wbroek / tasks.json
Created October 12, 2017 18:20
Visual Studio Code task to start the Android Emulator (for React Native development)
{
"version": "2.0.0",
"reveal": "silent",
"tasks": [{
"taskName": "Start Android Emulator",
"type": "shell",
"isBackground": true,
"command": "~/Library/Android/sdk/tools/emulator",
"args": [
"-avd",
@wbroek
wbroek / MainActivity.java
Created October 17, 2017 09:30 — forked from nowke/MainActivity.java
Retrofit - OkHTTP Connect to Self signed SSL Enabled Server: (Fix for CertPathValidatorException: Trust Anchor for certificate path not found) - Self Signing Client Bulider for Retrofit OkHTTP
public class MainActivity extends AppCompatActivity {
Retrofit retrofit;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
Rest
*/
@wbroek
wbroek / Fastfile
Last active October 8, 2019 10:19
HockeyApp lane for Fastlane for iOS
default_platform :ios
platform :ios do
desc "Submit a new Beta Build to Hockey App"
lane :beta do
if !is_ci?
changelog = prompt(text: "Please enter what's changed in one sentenence: ")
end
increment_build_number
@wbroek
wbroek / Fastfile
Created January 12, 2018 10:45
HockeyApp lane for Fastlane for Android
default_platform :android
platform :android do
desc "Submit a new Beta Build to Hockey App"
lane :beta do
changelog = "";
if !is_ci?
changelog = prompt(text: "Please enter what's changed in one sentenence: ")
end
@wbroek
wbroek / .eslintrc
Created April 30, 2018 13:27
ESLint config file
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-filename-extension": [

Keybase proof

I hereby claim:

  • I am wbroek on github.
  • I am wbroek (https://keybase.io/wbroek) on keybase.
  • I have a public key ASABlGj6hcBrhNLvjqUJrrFNfYEScgYTf6hZ4nlexSZGKQo

To claim this, I am signing this object: