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
tell application "Microsoft Outlook" | |
set theMessage to first item of (get current messages) | |
set theSubject to the subject of theMessage | |
set theBody to the plain text content of theMessage | |
set theID to the id of theMessage | |
end tell | |
tell application "Things3" | |
show quick entry panel with properties {name:theSubject, notes:theBody} | |
end tell |
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
<html> | |
<head> | |
<style> | |
.kbd { | |
position: relative; | |
top: -1px; | |
color: #333; | |
font-size: 0.8em; | |
background-color: #fff; |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace Builder | |
{ | |
public class Url | |
{ | |
private string basePath = string.Empty; | |
private Dictionary<string, string> parameters = new Dictionary<string, string>(); |
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
# Recursive Git Status | |
git-recv() { | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
find . -name .git -type d | while read dir ; do echo -e "${GREEN}Repository ==>${NC} $(dirname $dir)" ; git -C $(dirname $dir) status -s ; done | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am dijeferson on github. | |
* I am dijeferson (https://keybase.io/dijeferson) on keybase. | |
* I have a public key whose fingerprint is C466 C331 75EB D969 144E 96C6 B410 5791 E3D7 05AB | |
To claim this, I am signing this object: |
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 networkProfiles = Windows.Networking.Connectivity.NetworkInformation.GetConnectionProfiles(); | |
var adapter = networkProfiles.First<Windows.Networking.Connectivity.ConnectionProfile>().NetworkAdapter; | |
string networkAdapterId = adapter.NetworkAdapterId.ToString(); |
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
# Author Jeferson Santos | |
# jefersonsantos.com | |
# @dijeferson | |
# Imports | |
import re | |
# Methods | |
def isPublicClass(content): | |
pattern = r'(public class\s)(\w+)' |
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
/** | |
* Embed Gists with a URL | |
* | |
* Usage: | |
* Paste a gist link into a blog post or page and it will be embedded eg: | |
* https://gist.github.com/2926827 | |
* | |
* If a gist has multiple files you can select one using a url in the following format: | |
* https://gist.github.com/2926827?file=embed-gist.php | |
* |
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
/// <summary> | |
/// Extension method that turns a dictionary of string and object to an ExpandoObject | |
/// </summary> | |
public static ExpandoObject ToExpando(this IDictionary<string, object> dictionary) | |
{ | |
var expando = new ExpandoObject(); | |
var expandoDic = (IDictionary<string, object>)expando; | |
// go through the items in the dictionary and copy over the key value pairs) | |
foreach (var kvp in dictionary) |
NewerOlder