This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Foundation\Application.php | |
/** | |
* Base application created for the purpose of setting up a custom router in L5, per | |
* https://laracasts.com/discuss/channels/general-discussion/can-i-find-the-way-to-extend-router-or-replace-customer-router-class-on-laravel5 | |
*/ | |
namespace App\Foundation; | |
use App\Providers\RoutingServiceProvider; // your custom RoutingServiceProvider | |
use Illuminate\Events\EventServiceProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Based on https://gist.github.com/cabloo/328e39a19afeaed1256f83bd4a0ba4bc | |
// The maxWait option from the previous revision was removed, but can easily be added back in as feature. | |
namespace App\Jobs; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\DispatchesJobs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 1) Install HomeBrew | |
# 2) brew install openssl [email protected] rbenv | |
# 3) Setup rbenv | |
CC=gcc-4.9 \ | |
CFLAGS="-O2 -fno-tree-dce -fno-optimize-sibling-calls -I$(brew --prefix openssl)/include" \ | |
LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
rbenv install 1.8.7-p375 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BlockBasedSelector.h | |
// | |
// Created by Charlton Provatas on 11/2/17. | |
// Copyright © 2017 CharltonProvatas. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
@interface BlockBasedSelector : NSObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CopyableLabel.swift | |
// | |
// Created by Lech H. Conde on 01/11/16. | |
// Copyright © 2016 Mavels Software & Consulting. All rights reserved. | |
// | |
import UIKit | |
class CopyableLabel: UILabel { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> | |
<device id="retina4_7" orientation="portrait"> | |
<adaptation id="fullscreen"/> | |
</device> | |
<dependencies> | |
<deployment identifier="iOS"/> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> | |
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/> | |
<capability name="Safe area layout guides" minToolsVersion="9.0"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/webrtc/base/posix.cc b/webrtc/base/posix.cc | |
index 0eb24ee..7e48273 100644 | |
--- a/webrtc/base/posix.cc | |
+++ b/webrtc/base/posix.cc | |
@@ -44,7 +44,7 @@ enum { | |
bool RunAsDaemon(const char *file, const char *const argv[]) { | |
// Fork intermediate child to daemonize. | |
- pid_t pid = fork(); | |
+ pid_t pid = -1; |