Skip to content

Instantly share code, notes, and snippets.

Jesse Shawl jshawl

Block or report user

Report or block jshawl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5247126
var doScrape = function () {
var productTemplate = "{{#.}}"
+ "<form method='post' action='SOME_URL' class='riu-form'>"
+ "<a class='riu-logo' href='http://rackituponline.com'>Rack It Up</a>"
+ "<img src='{{OrigImageURL}}' class='riu-img'>"
+ "<h1>{{Name}}</h1>"
+ "<label>Price:</label>"
+ "<input type='text' value='{{OrigPrice}}' readonly>"
+ "<label>Color:</label>"
// + "<p>Colors: {{#Colors}}{{.}}, {{/Colors}}</p>"
@jshawl
jshawl / Gruntfile.js
Last active Feb 21, 2019
Grunt + Sass + Autoprefixer
View Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options:{
style:'compressed'
},
files: {
'css/style.css' : 'scss/style.scss'
View invoice-yaml
---
layout: invoice
status: paid | unpaid | late
deliverables:
item:
description: made site responsive
price: $1,000
item:
description: changed logo color
price: $300
View pretty.html
<div class="box">
<div class="child">
<div class="some-children">
<div class="more-children">
</div><!--//more-children-->
</div><!--//some-children-->
</div><!--//child-->
</div><!--//box-->
@jshawl
jshawl / ghost.jshawl.com
Created Oct 18, 2013
a working config file for an nginx vhost
View ghost.jshawl.com
server {
listen 80;
server_name ghost.jshawl.com;
root /var/www/ghost.jshawl.com;
index index.php;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
@jshawl
jshawl / SassMeister-input.scss
Created Nov 24, 2013
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
/* Variables */
$green:#bada55;
body{
color:$green;
View find-consecutive-runs.js
var array = [1,2,3,5,10,9,8,9,10,11,7];
function findConsecutiveRuns(array){
var consecutiveRuns = new Array();
for (index=0;index<array.length;index++){
var one = parseInt(array[index]);
var two = parseInt(array[index+1]);
var three = parseInt(array[index+2]);
if (one+1==two && two + 1 == three){
// consecutive increasing: 1,2,3
View Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
// the banner is inserted at the top of the output
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
build: {
src: 'dist/scripts.js',
View so.php
<body>
<form method="post" action="<?php $_SERVER['REQUEST_URI'] ?>" >
X= <input type="text" name="x" /> <br />
Y= <input type="text" name="y" /> <br />
Diferença= <select name="expressao">
<option value=">"> > </option>
<option value="<"> < </option>
<option value="="> = </option>
</select>
View common-vim.md

Vim Alphabet

a

a enter into insert mode after the character your cursor is on

A enter into insert mode at the end of the current line

b

You can’t perform that action at this time.