This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake' | |
namespace :data do | |
require 'open-uri' | |
require 'csv' | |
task load_drains: :environment do | |
puts 'Downloading Drains... ... ...' | |
url = 'durham.csv' | |
csv_string = open(url).read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:airline_section_y = airline#util#wrap(airline#parts#ffenc() .' %#__accent_bold_red#%{&expandtab?"_":""}%#__restore__#%{&expandtab?"":"t"}%{&tabstop}',0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-image: url('http://www.greenbucketcomposting.com/wp-content/uploads/2016/07/stock-photo-green-watercolor-drop-pattern-on-white-background-290504936-1.jpg'); background-repeat: repeat; background-position: top left; background-attachment: scroll; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6c33052cb5370579e591270e16dc42115dae325f Mon Sep 17 00:00:00 2001 | |
From: Dane Summers <dsummersl@yahoo.com> | |
Date: Sat, 9 Jul 2016 21:44:21 -0400 | |
Subject: [PATCH] Puts babel compilation into npm build process. | |
--- | |
.gitignore | 1 + | |
package.json | 2 + | |
xpath.js | 260 ----------------------------------------------------------- | |
3 files changed, 3 insertions(+), 260 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<% | |
@events_by_date = @events.all.group_by { |x| x.created_at.strftime('%A') } | |
%> | |
<a href='/'> | |
<img src="<%= asset_path 'icons/citygram-logo-color.png' %>" width="150" class="logo"> | |
</a> | |
<h1>Latest <span class="topic"><%= @subscription.publisher.title %></span> | |
for <span class="phone"><%= @subscription.nominative %></span></h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<% @events_by_date.each do |day, events| %> | |
<section id="<%= day %>"> | |
<h2> | |
<%= day %> | |
</h2> | |
<% events.each do |event| %> | |
<p><%= hyperlink(event.title) %></p> | |
<% end %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To reset the databases completely: | |
bundle exec rake db:drop && rm -rf tmp && bundle exec rake db:create db:migrate && bundle exec foreman start | |
And build: | |
bundle exec rake publishers:download publishers:update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-08-23_17:21:03.65125 GET /event/impression?ts=1440350461429&siteId=3862927&lineItemId=120349&resource=%2Fvast%3Fit%3Da%26br_dpidstype%3Da%26siteId%3D3862927%26platform%3DiPhone%2BOS%26n%3D52685%26br_ip%3D73.161.43.138%26br_osvers%3D6.1.6%26br_ua%3DMozilla%252F5.0%2B%2528iPod%253B%2BCPU%2BiPhone%2BOS%2B6_1_6%2Blike%2BMac%2BOS%2BX%2529%2BAppleWebKit%252F536.26%2B%2528KHTML%252C%2Blike%2BGecko%2529%2BMobile%252F10B500%2BPerk%2BTV%2B%2528PTVIPH%2529%252F2.7.0%2BAerServSDK%252F2.25.2.1%26br_dpidu%3D8D3DF824-A62A-460B-8BBD-4BB0592E1880%26br_appurl%3Dhttps%253A%252F%252Fitunes.apple.com%252Fus%252Fapp%252Fperk-tv-get-rewards-when-you%252Fid706630901%253Fmt%253D8%26br_sdkvers%3D2.25.2.1%26br_appname%3DPerk%2BTV%26br_domain%3Dwww.perk.com%26br_bundle%3Dcom.jutera.perktv%26br_carrier%26br_network%3Dwifi%26br_pageurl%3Dwww.perk.com%26br_dnt%3Dfalse%26br_dpids%3D%26br_dpidutype%3Di%26br_make%3DApple%2BInc.%26br_model%3DiPod%2Btouch%26br_nplat%3D42.728%26br_nplon%3D-83.147&s=mobile-prod-aws 302 1ms - 70 | |
2015-08-23_17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var config = require("./app/code/js/server/Config"); | |
var _ = require("lodash"); | |
process.env.DARKROLL_ENV = process.argv[2]; | |
var configs = config.withRequest({}); | |
console.log("|process.env.DARKROLL_ENV = "+ process.env.DARKROLL_ENV); | |
_.each(_.keys(configs),function(k) { | |
console.log(k +" = "+ JSON.stringify(configs[k])); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Execute something on all files of the same kind: | |
" | |
" See GG and AA commands: | |
function! s:ExecFileType(cmd,search) | |
let extension = substitute(expand('%'),'\v^.*\.',"","") | |
exec printf("silent %s",printf(a:cmd,a:search,extension)) | |
endfunction | |
command! -nargs=1 GG call s:ExecFileType("Ggrep %s -- '*.%s'",'<args>') | |
command! -nargs=1 AA call s:ExecFileType("Ag %s **/*.%s",'<args>') |