As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
This file contains hidden or 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
Site | Theme | Version | |
---|---|---|---|
https://montoursolar.com | ronneby_child | 1.0.0 | |
https://patternenergynewmexico.com | Divi | 4.0.11 | |
https://crystalriversolar.com | ronneby_child | 1.0.0 | |
https://heritageprairierenewable.com | dfd-ronneby | 3.2.0 | |
http://cmw.patternmicro.site | ronneby_child | 1.0.0 | |
http://crs.pattermicro.site | ronneby_child | 1.0.0 | |
https://oldjacksonsolartexas.com | dfd-ronneby | 3.2.0 | |
https://southerncrosstransmission.com | ronneby_child | 1.0.0 | |
http://hickory.patternmicro.site | dfd-ronneby | 3.2.0 |
This file contains hidden or 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
This is a another test. |
This file contains hidden or 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
#!/bin/bash | |
filename=$(basename -- "$1") | |
extension="${filename##*.}" | |
plain="${filename%.*}"; | |
newfile="${plain}.blurred.${extension}"; | |
convert ${filename} -blur 0x4 -set colorspace Gray -separate -average ${newfile} |
This file contains hidden or 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
# One-liner to download the thumbnail for a Vimeo video. | |
wget $( curl -s http://vimeo.com/api/oembed.json?url='https://vimeo.com/235215203' | python -c "import sys,json; print json.load(sys.stdin)['thumbnail_url']" ) |
This file contains hidden or 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
Coffee coffee = new Coffee(); | |
if(coffee.Empty) { | |
coffee.Refill(); | |
} | |
coffee.Drink(); |
This file contains hidden or 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
#!/usr/bin/env python | |
# Coded poorly by Brett Kelly | |
# http://nerdgap.com | |
# @inkedmn | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
import urllib | |
import re |
This file contains hidden or 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
property targetDir : "/Users/bkelly/Dropbox/Notes/" | |
property editorApp : "/Applications/Byword.app" | |
on getNewFileName() | |
set fileName to (text returned of (display dialog "Enter the filename with extension" default answer "Untitled-1.md")) | |
return fileName | |
end getNewFileName | |
tell application "Byword" | |
set fname to my getNewFileName() |
This file contains hidden or 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
<?php | |
function get_two_paragraphs(){ | |
global $post; | |
$str = wpautop( get_the_content() ); | |
$psToGrab = 2; // number of paragraphs to get | |
$maxFirstParaLength = 200; // character max in first paragraph | |
$matches = array(); // matching elements will go here | |
$pattern = '%<p[^>]*>(.*?)</p>%i'; // match what's between all <p> tags | |
preg_match_all($pattern, $str, $matches); // do the regex match |