Skip to content

Instantly share code, notes, and snippets.

View leope's full-sized avatar

Leo Peralta leope

View GitHub Profile
@leope
leope / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@leope
leope / designer.html
Last active August 29, 2015 14:10
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
#topeka_profile {
width: 300px;
height: 600px;
@leope
leope / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
#core_drawer_panel {
@leope
leope / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@leope
leope / uninstall-node.sh
Last active December 21, 2015 14:48 — forked from omarrr/uninstall-node.sh
Mac OS X uninstall script for packaged install of node.js
#!/bin/sh
(( ${#} > 0 )) || {
echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!'
echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.'
echo "Disclaimer aside, this worked for the author, for what that's worth."
echo 'Press Control-C to quit now.'
read
}
# This will need to be executed as an Admin (maybe just use sudo).
@leope
leope / jekyll-tasks.rake
Last active December 11, 2015 23:49
Jekyll common tasks
require 'rubygems'
require 'optparse'
require 'yaml'
task :post do
OptionParser.new.parse!
ARGV.shift
title = ARGV.join(' ')
path = "_posts/#{Date.today}-#{title.downcase.gsub(/[^[:alnum:]]+/, '-')}.md"