Skip to content

Instantly share code, notes, and snippets.

View dhilowitz's full-sized avatar

David Hilowitz dhilowitz

View GitHub Profile
@briceburg
briceburg / AppServiceProvider.php
Last active July 20, 2019 07:55
laravel 5 - configuring minimal log level
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Log;
use Config;
class AppServiceProvider extends ServiceProvider
{
@kelunik
kelunik / remove-w3schools-from-google-search.user.js
Created December 9, 2014 13:52
Remove w3schools.com from Google Search results
// ==UserScript==
// @name Remove w3schools.com from Google
// @namespace https://www.kelunik.com
// @include https://www.google.com/*
// @include https://www.google.de/*
// @version 1
// @grant none
// ==/UserScript==
function forEach(list, callback) {
@dhilowitz
dhilowitz / grab-doit-view-tasks.js
Created March 1, 2013 00:01
1) In Chrome: open up a list view in the doit.im website. 2) Open up the Developer Console. 3) Paste this snippet into the console and hit enter. 4) Go into your favorite text editor and paste.
var taskString = ''; var tasks = $('.taskList .task .title .link-title').text(function(index, value) {
taskString = taskString + '- ' + value + "\n";
}); console.log(taskString); copy(taskString);
@tomohisa
tomohisa / gist:2897676
Created June 8, 2012 19:20
Add and Remove ChildViewController
// add child view
UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"];
[self addChildViewController:controller];
controller.view.frame = CGRectMake(0, 44, 320, 320);
[self.view addSubview:controller.view];
[controller didMoveToParentViewController:self];
// remove child view
UIViewController *vc = [self.childViewControllers lastObject];
[vc.view removeFromSuperview];