Skip to content

Instantly share code, notes, and snippets.

@LuisSevillano
LuisSevillano / README.md
Created October 7, 2017 23:07
Center and Scale your map
@igorbenic
igorbenic / package.json
Last active January 8, 2021 10:44
Powering the WordPress Search with React and REST API | https://www.ibenic.com/wordpress-react-search
{
"name": "wordpress-search-react",
"version": "1.0.0",
"description": "Powering WordPress Search with React and REST API",
"main": "assets/js/public.js",
"scripts": {
"build": "webpack",
"watch": "webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
@barockok
barockok / Premailer.php
Created January 10, 2012 20:39 — forked from Synchro/Premailer.php
PHP interface class for the Premailer API
<?php
/**
* Premailer API PHP class
* Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail
* Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal
* Premailer is owned by Dialect Communications group
* @link http://premailer.dialect.ca/api
* @author Marcus Bointon <marcus@synchromedia.co.uk>
*/
@folbert
folbert / Bootstrap overrides for Sage 8.5.1 and Bootstrap 4 alpha 6
Last active April 24, 2019 00:00
Add this to bower.json and remove what you don't need
"overrides": {
"bootstrap": {
"main": [
"./scss/_variables.scss",
"./scss/_mixins.scss",
"./scss/_custom.scss",
"./scss/_normalize.scss",
"./scss/_print.scss",
"./scss/_reboot.scss",
"./scss/_type.scss",
@Chrisedmo
Chrisedmo / sublime-icloud.txt
Created November 11, 2014 13:53
Sync Sublime Text Plugins iCloud Drive
Sublime Text Plugins iCloud Drive
First Machine
On your first machine, use the following instructions.
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ mkdir ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins
$ mv User ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins
$ ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins/User
function ConvertGoogleDocToCleanHtml() {
var body = DocumentApp.getActiveDocument()//.getBody();
var numChildren = body.getNumChildren();
var output = [];
var images = [];
var listCounters = {};
var toc = {}
for (var i = 0; i < numChildren; i++) {
var p = body.getChild(i);
@ikonikre
ikonikre / about.md
Last active November 8, 2016 16:33
Bootstrap 4 spacer variables with sizes 'half' and '4' included.

Spacer functions for Bootstrap 4 α3

The spacer functions include these measurements:

  • 0.5 => m-*-h
  • 1 => m-*-1
  • 1.5 => m-*-1h
  • 2 => m-*-2
  • 3 => m-*-3
  • 4 => m-*-4