Skip to content

Instantly share code, notes, and snippets.

View prem911's full-sized avatar

Premananda Mohapatra prem911

  • iFinStrats
  • Bangalore
  • 02:15 (UTC +05:30)
View GitHub Profile
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-input/core-input.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<style id="jsbin-css">
#contentContainer {
/*position: relative;*/
/*left:100px;*/
width: 500px;
height: 300px;
border: 1px black solid;
/*overflow: hidden;*/
background-color: #EEE;
cursor: auto;
<style id="jsbin-css">
#thing {
position: relative;
width:40px;
height:40px;
/*left: 50px;*/
/*top: 50px;*/
background: url("https://www.docusign.com/sites/default/files/eSign_Icon_2.svg");
background-repeat: no-repeat;
}
@prem911
prem911 / nginx.conf
Created May 25, 2017 11:49 — forked from nateware/nginx.conf
Nginx sample config for EC2
#
# Sample nginx.conf optimized for EC2 c1.medium to xlarge instances.
# Also look at the haproxy.conf file for how the backend is balanced.
#
user "nginx" "nginx";
worker_processes 10;
error_log /var/log/nginx_error.log info;
@prem911
prem911 / docker-compose-postgres.yml
Last active June 23, 2017 11:11 — forked from toast38coza/docker-compose-postgres.yml
Docker-compose files for Kong
version: "2"
services:
postgres:
image: postgres:9.4
container_name: kong-database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
<style id="jsbin-css">
#thing {
position: absolute;
width:272px;
height:107px;
background: url("https://doc-0c-9o-docs.googleusercontent.com/docs/securesc/j5p9ejn8hhsteoaqq8ce21a304fdjoh1/uv85e4brc6o3t9uekqjjm34fj6dn4t2v/1499162400000/03281474769769850186/03281474769769850186/0B0kQYbSggMgAeXpXTmRBN21xVlk?e=download&nonce=2jl04do4nlnjs&user=03281474769769850186&hash=ler89pd9i6g32mnro2upnj2gm5iu7mdv");
border: 1px solid #c0c0c0;
left: 0px;
top: 0px;
display: none;
@prem911
prem911 / nginx.conf
Created August 2, 2017 19:28 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@prem911
prem911 / criticalcss-bookmarklet-devtool-snippet.js
Created August 4, 2017 14:12 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin:0;padding:0;background-color:red;
background-image: url("https://picsum.photos/1000");
color: white;
font-weight:bold;
}