I hereby claim:
- I am dylanjha on github.
- I am dylanj (https://keybase.io/dylanj) on keybase.
- I have a public key ASCL1W5WGRpMp0XKfIrTOB6SUQYlzB35MH3D6zVR5tLbmAo
To claim this, I am signing this object:
<div id='nav'> | |
<ul class='nav-list'> | |
<li class='nav-item'><a href="javascript://">Home</a></li> | |
<li class='nav-item'><a href="javascript://">There</a></li> | |
</ul> | |
</div> | |
<div id='flash-container' class='flash-container'> | |
</div> | |
<div id='content'> | |
Here is some content. |
// Load variables from `.env` as soon as possible | |
require('dotenv').config({ | |
path: `.env.${process.env.NODE_ENV || 'development'}` | |
}) | |
const clientConfig = require('./client-config') | |
const isProd = process.env.NODE_ENV === 'production' | |
// Portable Text Serialization | |
const PortableText = require("@sanity/block-content-to-html") |
=begin | |
Useage: | |
#assets/locales/en.js.erb | |
```js | |
//= depend_on_config 'locales/es.yml' | |
``` | |
=end |
I hereby claim:
To claim this, I am signing this object:
<%# Put this file in app/views/test.html.erb %> | |
<h1>Here is some html</h2> | |
<%= name %> |
[ | |
{ | |
"code": "AAA", | |
"lat": "-17.3595", | |
"lon": "-145.494", | |
"name": "Anaa Airport", | |
"city": "Anaa", | |
"state": "Tuamotu-Gambier", | |
"country": "French Polynesia", |
Inconsistent uri encoding with parenthesis. Notice in the first 3 examples the parenthesis are still there, in the fourth example the parenthesis are replaced with %28
and %29
:
This is the string being encoded in each example: www.google.com?q=some string with (parens)
===
Javascript (node 6.9.0):
encodeURI("www.google.com?q=some string with (parens)")
// an element with class 'font_resize' with css properties: | |
// * max-height | |
// * max-width | |
// * font-size | |
// the element has children span elements, the font size inside these spans will re resized. | |
;(function($){ | |
$.fn.fontResize = function(options){ | |
var spans = $('span:visible', this); | |
var heightMax = parseInt($(this).css('max-height'), 10), |
const execa = require('execa') | |
const Listr = require('listr') | |
const PROD_APP_NAME = '<replace with: heroku name of prod app>' | |
const STAGING_APP_NAME = '<replace with: heroku name of staging app>' | |
const tasks = new Listr([ | |
{ | |
title: 'setup git remote - staging', | |
task: () => |