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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Espresso Soda.tmTheme", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", | |
"._*" | |
], | |
"folder_exclude_patterns": |
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
<snippet> | |
<content><![CDATA[ | |
console.log(" /"); | |
console.log(" .7"); | |
console.log(" \\\ , //"); | |
console.log(" |\\\.--._/|//"); | |
console.log(" /\\\ ) ) ).'/"); | |
console.log(" /( \\\ // /"); | |
console.log(" /( J`((_/ \\\"); | |
console.log(" / ) | _\\\ /"); |
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
#!/usr/bin/env php | |
<?php | |
$serialized = file_get_contents($argv[1]); | |
$obj = unserialize($serialized); | |
$json_obj = json_encode($obj, JSON_PRETTY_PRINT); | |
echo "$json_obj\n"; |
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
if (function_exists(wpseo_autoload)) { | |
function krafit_repair_wpseo() { | |
?> | |
<style> | |
#adminmenu #toplevel_page_wpseo div.wp-menu-image img { | |
display: none; | |
} | |
#adminmenu #toplevel_page_wpseo div.wp-menu-image::before { | |
content: "\f511"; |
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
# Crazy prompt things | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
export PS1="[\D{%D %r} \w]\$(parse_git_branch)" | |
PS1="\$(lolcat -F 3 -p 25 -f <<< \"$PS1\")" | |
PS1+="\n\[$(tput setaf 0)\](ノ◕ヮ◕)ノ*:・゚✧ \[$(tput sgr0)\]" |
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
#!/usr/bin/env bash | |
# Watson Brew Status | |
# | |
# by Antoine Corcy <contact@sbin.dk> | |
# updated by Pär Thernstrom <par.thernstrom@gmail.com> | |
# to support Watson custom location and configuration. | |
# | |
# <xbar.title>Watson Brew Status</xbar.title> | |
# <xbar.version>1.0</xbar.version> |
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
import numpy as np | |
from scipy.sparse import csc_matrix | |
def pageRank(G, s = .85, maxerr = .001): | |
""" | |
Computes the pagerank for each of the n states. | |
Used in webpage ranking and text summarization using unweighted | |
or weighted transitions respectively. |
OlderNewer