Skip to content

Instantly share code, notes, and snippets.

var aNNit = function(str) {
return str.slice(0,1) + (str.length - 2) + str.slice(-1)
}
aNNit('internationalization')
// i18n
aNNit('accessibility')
// a11y

Keybase proof

I hereby claim:

  • I am markupboy on github.
  • I am markupboy (https://keybase.io/markupboy) on keybase.
  • I have a public key whose fingerprint is 24E0 756C 67F3 A1C1 0CED 5094 9764 060B FDD2 E18D

To claim this, I am signing this object:

var http = require('http'),
fs = require('fs'),
url = require('url'),
sdc = require('statsd-client'),
SDC = new sdc(); // Default 'localhost:8124'
// var gif = fs.readFileSync('./transparent.gif');
http.createServer(function (req, res) {
var qs = url.parse(req.url, true).query;
var end = function () {
+----------------------------------------------+
| Series | Episode | Description |
+--------+---------+---------------------------+
| 3 | 5 | Indestructible Hilux |
| 4 | 1 | DB9 vs Euro Train |
| 5 | 5 | Jaguar at the Nurburgring |
| 5 | 8 | Race to Verbier |
| 7 | 1 | Vantage, M6, 911 |
| 7 | 3 | Supercars Across France |
| 7 | 5 | Bugatti vs Cesna |
@markupboy
markupboy / gist:4b63d18eff01eccd9782
Created September 11, 2014 16:32
Slack Userstyle
/* Clearer menu */
#menu,
.menu_example {
border: 1px solid #fff !important;
}
/* Different header */
#header {
background-color: #f5f5f5 !important;
- if desktop_device?
.desktop_notification
.inner
%h2= t('admin.desktop-notification.title')
%p
= t('admin.desktop-notification.description_html')
= link_to t('admin.desktop-notification.more-info'),
'http://help.bigcartel.com/customer/portal/articles/1416084-mobile-admin-preview'
\.
@markupboy
markupboy / index.html.erb
Last active August 29, 2015 13:57
long line
<li>
<%= link_to 'Y', '#daily_stats',
class: 'icon panel_toggle_trigger',
data: {
title: "#{ t('admin.dashboard.visitors-daily') } #{ t('admin.dashboard.visitors') }"
} %>
</li>
= link_to 'Y', '#daily_stats',
class: 'icon panel_toggle_trigger',
data:
title: "#{ t('admin.dashboard.visitors-daily') } #{ t('admin.dashboard.visitors') }"
@markupboy
markupboy / raw request
Created August 6, 2013 16:54
raw request
POST /store/test/carts/8SHVF13OLT6R547D4KMCBI92G.json?v=1 HTTP/1.1
Accept: */*
Origin: http://test.bigcartel.dev
Accept-Language: en-US
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
Host: api.bigcartel.dev
Content-Length: 565
Pragma: no-cache
@markupboy
markupboy / gist:5388984
Created April 15, 2013 15:32
get products
<section id="products_list">
<div class="products">
{% for product in products.all %}
<div class="product">
<a href="{{ product.url }}">
<img src="{{ product.images.last | product_image_url }}" alt="Image of {{ product.name | escape }}">
<div class="overlay">
<div>
<h3>{{ product.name }}</h3>
<p>{{ product.default_price | money_with_sign }}</p>