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
| import { Http, ResponseContentType } from '@angular/http'; | |
| ... | |
| constructor( | |
| private http: Http, | |
| ) { } | |
| downloadFile() { | |
| return this.http | |
| .get('https://jslim.net/path/to/file/download', { |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| var map = L.map('map').setView([13.08, 80.27], 10); | |
| L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { | |
| attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' | |
| }).addTo(map); | |
| function createMarkers(latlng) { | |
| console.log('Create markers ...'); | |
| var imgMarker = L.marker(latlng, {icon: L.icon({ | |
| iconUrl: "/images/blue-baloon.png", |
| package com.sakthiinfotec.server; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.net.ServerSocket; | |
| import java.net.Socket; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; |
| package com.sakthiinfotec.hbase; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.hbase.HBaseConfiguration; | |
| import org.apache.hadoop.hbase.HConstants; | |
| import org.apache.hadoop.hbase.HTableDescriptor; | |
| import org.apache.hadoop.hbase.client.HBaseAdmin; | |
| import org.apache.hadoop.hbase.client.HTable; | |
| import org.apache.hadoop.hbase.client.HTableInterface; | |
| import org.apache.hadoop.hbase.client.Result; |
| package com.sakthiinfotec.hbase; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.hbase.HBaseConfiguration; | |
| import org.apache.hadoop.hbase.HConstants; | |
| import org.apache.hadoop.hbase.client.HBaseAdmin; | |
| public class HBaseConnectionTest { | |
| public static void main(String[] args) { |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>hbase-batch</groupId> | |
| <artifactId>hadoop-hbase-batch</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>HBase - Batch</name> | |
| <description>HBase - Batch Job</description> | |
| <dependencies> |
| server { | |
| # Redirect any subdomain to the root domain | |
| # to be captured by next server block | |
| server_name *.example.com; | |
| return 301 $scheme://example.com$request_uri; | |
| } | |
| server { | |
| root /var/www; | |
| index index.html index.htm; |
| On my Ubuntu machine I located the GeoIP.dat file. If not available then download/intall the same. | |
| root@localhost:~# locate GeoIP.dat | |
| /usr/share/GeoIP/GeoIP.dat | |
| Open Nginx configuration (/etc/nginx/nginx.conf) and specify <geoip_country> <path to GeoIP.dat> | |
| line under the "http" block. Example block: | |
| http { | |
| # SS - meant to find country code from the client IP |