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
//node A.js > output.txt | |
// If Rabbit had any custom properties on it | |
// (or static properties as some call it), they would not be copied, you'd have to do that manually using getOwnPropertyNames | |
// ref: https://stackoverflow.com/a/9267343/1084917 | |
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames | |
// var oldProto = Rabbit.prototype; | |
// Rabbit = function() {...}; | |
// Rabbit.prototype = oldProto; |
import Up from './index' | |
declare module '@ioc:Adonis/Core/HttpContext' { | |
interface HttpContextContract { | |
up: Up | |
} | |
} |
# 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 | |
Setting - set tabs to 2 |
'use strict' | |
const httpProxy = require('http-proxy'); | |
const Logger = use('Logger'); | |
class ProxyController { | |
/** | |
* Proxy any request to the targeted PROXY_HOST | |
* |
#!/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 |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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" | |
) |
Responding to requests via simple route matching is built in to Go's net/http
standard library package. Just register the path prefixes and callbacks you want invoked and then call the ListenAndServe
to have the default request handler invoked on each request. For example:
package main
import (
#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]; | |
} | |
} |