Use these Regex's in Sublime Text's find and replace area. https://github.com/mailchimp/Email-Blueprints
Remove the @editable's
/*@editable*/
| function getKloutScore($handle, $key) { | |
| $url = "http://api.klout.com/1/klout.json?users=$handle&key=$key"; | |
| $response = file_get_contents($url); | |
| $result = json_decode($response, true); | |
| $score = $result[users][0][kscore]; | |
| return $score; | |
Use these Regex's in Sublime Text's find and replace area. https://github.com/mailchimp/Email-Blueprints
Remove the @editable's
/*@editable*/
| /** | |
| * Darkens or lightens a CSS RGB color. Derived from http://www.sitekickr.com/coda/jquery/darken-background-color-element.html | |
| * @param {string} rgb "rgb(26,26,26)"" | |
| * @param {string} type "darken" or "lighten" | |
| * @param {int} percent | |
| * @return {string} returns the altered RGB color | |
| */ | |
| function alterColor(rgb, type, percent) { | |
| rgb = rgb.replace('rgb(', '').replace(')', '').split(','); |
| /* spark a animation */ | |
| @keyframes pound1 { | |
| 0% { | |
| transform: rotateX(90deg) scale(0); | |
| } | |
| 100% { | |
| transform: rotateX(0deg) scaleX(1) scaleY(1) scaleZ(1); | |
| } |
| #!/usr/bin/env python | |
| """ Example: | |
| Enter command to run when a matched file changes: | |
| g++ hashing.cpp - o main & & ./main | |
| Enter space seperated list of file extensions to monitor: | |
| .cpp .h | |
| """ | |
| import os |
| void Dump( unsigned char* *mem, unsigned int stop ) { | |
| cout << "mem = " << mem << endl; | |
| unsigned char * p = reinterpret_cast< unsigned char*>( mem ); | |
| for ( int i = 0; i < n; i++ ) { | |
| std::cout << " " << i << " " << (mem+i) << " " << std::hex << int(p[i]) << std::dec << " " << endl; | |
| } | |
| } |
| "routes": [{ | |
| "id": "Hillsborough Area Regional Transit_6", | |
| "textColor": "FFFFFF", | |
| "color": "09346D", | |
| "description": "", | |
| "longName": "56th Street", | |
| "shortName": "6", | |
| "type": 3, | |
| "agencyId": "Hillsborough Area Regional Transit", | |
| "url": "http://www.gohart.org/routes/hart/06.html" |
| #!/usr/bin/env python | |
| import random | |
| fname = 'test-input.txt' | |
| fout = None | |
| debug = False | |
| def write(out): | |
| global fout |
| #!/usr/bin/env python | |
| import numpy | |
| import linecache | |
| out_str = "" | |
| def picklines(thefile, whatlines): | |
| return [x for i, x in enumerate(thefile) if i in whatlines] |
| import networkx as nx | |
| def draw_graph(G): | |
| from matplotlib import pyplot | |
| pos = nx.graphviz_layout(G, prog='dot') | |
| labels = dict((n, '%d' % n) for n, d in G.nodes(data=True)) | |
| edge_labels = dict(((u, v,), d['op']) for u, v, d in G.edges(data=True)) | |
| nx.draw_networkx(G, pos=pos, labels=labels, node_size=1000, | |
| width=2, node_color='white', edge_color='blue') |