A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| 'use strict' | |
| const httpProxy = require('http-proxy'); | |
| const Logger = use('Logger'); | |
| class ProxyController { | |
| /** | |
| * Proxy any request to the targeted PROXY_HOST | |
| * |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| ## AWS ## | |
| # All AWS C9 envments | |
| https://eu-central-1.console.aws.amazon.com/cloud9/home?region=us-east-1 | |
| # Instance management | |
| https://console.aws.amazon.com/ec2/home?region=eu-central-1#Instances:sort=instanceId | |
| # Create AWS C9 environment | |
| https://eu-central-1.console.aws.amazon.com/cloud9/home/create |
| # nil? can be used on any Ruby object. It returns true only if the object is nil. | |
| nil.nil? # => true | |
| [].nil? # => false | |
| {}.nil? # => false | |
| "".nil? # => false | |
| " ".nil? # => false | |
| true.nil? # => false | |
| # empty? can be used on some Ruby objects including Arrays, Hashes and Strings. It returns true only if the object's length is zero. | |
| nil.empty? # NoMethodError: undefined method `empty?' for nil:NilClass |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/athena" | |
| ) |
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf8 : | |
| ``` | |
| $ pip install -U boto3 retrying | |
| $ export AWS_DEFAULT_PROFILE=test | |
| $ cat foo.sql | |
| select count(*) | |
| from bar | |
| $ python athena.py foo.sql | |
| $ ls -1 |
| /* Implementation of HTML Timers (setInterval/setTimeout) based on sleep. | |
| * | |
| * This file is provided under the following terms (MIT License): | |
| * 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 | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
| #define Header_height 30 | |
| - (void)scrollViewDidScroll:(UIScrollView *)scrollView { | |
| for (UITableViewCell *cell in self.tblRedeemables.visibleCells) { | |
| CGFloat hiddenFrameHeight = scrollView.contentOffset.y + Header_height - cell.frame.origin.y; | |
| if (hiddenFrameHeight >= 0 || hiddenFrameHeight <= cell.frame.size.height) { | |
| [self maskCell:cell | |
| fromTopWithMargin:hiddenFrameHeight]; | |
| } | |
| } |
| // | |
| // MockAPITest.m | |
| // iOS-API-Mock-Test | |
| // | |
| // Created by gauravds on 28/12/16. | |
| // Copyright © 2016 iOS Dev Group. All rights reserved. | |
| // | |
| #import "ModelTestHelper.h" |