A little showcase for any website provided in the iFrame URL. Inspired by https://dribbble.com/shots/986009-Flat-Vector-Chrome-Frame
Updated to be grabbable.
A Pen by Chris Deacy on CodePen.
A little showcase for any website provided in the iFrame URL. Inspired by https://dribbble.com/shots/986009-Flat-Vector-Chrome-Frame
Updated to be grabbable.
A Pen by Chris Deacy on CodePen.
| /** | |
| * VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
| * | |
| * To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
| * It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
| * the height of element `.foo` —which is a full width and height cover image. | |
| * | |
| * iOS Resolution Quick Reference: http://www.iosres.com/ | |
| */ | |
easy, client side base64 encoder.
A Pen by Roman Pramberger on CodePen.
| // SCSS Mixin v.1.0 - beta | |
| // ========================================= | |
| // ResponsiveFonts | |
| // ========================================= | |
| // Config | |
| $base-width:960 !default; // Width @ 100% layout or 1:1 | |
| $min-width:320 !default; // Minimum width | |
| $max-width:2560 !default; // Maximum width | |
| // only run once |
| /*template.css*/ | |
| .main{display:table-cell;*display:block;width:auto;} | |
| .row,.main{*zoom:1;} | |
| .row:after,.main:after{clear:both;display:block;visibility:hidden;overflow:hidden;height:0 !important;line-height:0;font-size:xx-large;content:" x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ";} | |
| .page{margin:0 auto;width:950px;_text-align:left;} /* wraps other template elems to set width */ /* text-align IE5.5 */ | |
| .liquid{width:auto;margin:0;} | |
| /* ====== Columns ====== */ | |
| .leftCol{float:left;width:250px;_margin-right:-3px;} | |
| .rightCol{float:right;width:300px;_margin-left:-3px;} |
| import sys | |
| import subprocess | |
| import tempfile | |
| import urllib | |
| text = sys.stdin.read() | |
| chart_url_template = ('http://chart.apis.google.com/chart?' | |
| 'cht=qr&chs=300x300&chl={data}&chld=H|0') | |
| chart_url = chart_url_template.format(data=urllib.quote(text)) |
| data:text/html;charset=utf-8, <title>Writability</title><body OnLoad='document.body.focus();' contenteditable style="font-size:21px;line-height:1.6;font-family:'Chaparral Pro',Georgia;max-width:21em;margin:0 auto;padding:3rem;background-color:rgb(233,233,225);color:rgb(68,68,68);" spellcheck="false"> |
| data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> | |
| <!-- | |
| For other language: Instead of `ace/mode/ruby`, Use | |
| Markdown -> `ace/mode/markdown` | |
| Python -> `ace/mode/python` | |
| C/C++ -> `ace/mode/c_cpp` | |
| Javscript -> `ace/mode/javascript` | |
| Java -> `ace/mode/java` | |
| Scala- -> `ace/mode/scala` |
| function oAuthConfig() { | |
| var oAuthConfig = UrlFetchApp.addOAuthService("twitter"); | |
| oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token"); | |
| oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token"); | |
| oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize"); | |
| // Register an app at https://dev.twitter.com/apps/new to get the following key and secret | |
| oAuthConfig.setConsumerKey("PUT CONSUMER KEY HERE"); | |
| oAuthConfig.setConsumerSecret("PUT CONSUMER SECRET HERE"); | |
| } |