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 perl | |
use strict; | |
use warnings; | |
use File::Spec; | |
my @fhs; | |
opendir my $dh, '/etc'; | |
for my $entry (readdir $dh) { |
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
(defun my/toggle-let () | |
(interactive) | |
(save-excursion | |
(when (re-search-backward "(\\(let\\)\\(\\*\\)?" nil t) | |
(goto-char (match-end 1)) | |
(if (and (match-string 2) (string= (match-string 2) "*")) | |
(delete-char 1) | |
(insert "*")) | |
(backward-up-list) | |
(indent-pp-sexp)))) |
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
% prove -bv t/300_setup/04_lite.t | |
t/300_setup/04_lite.t .. | |
# /tmp/eFPNmtcAka | |
[t::TestFlavor] Loading asset: jQuery | |
[t::TestFlavor] Loading asset: Bootstrap | |
[t::TestFlavor] Loading asset: ES5Shim | |
[t::TestFlavor] Loading asset: MicroTemplateJS | |
[t::TestFlavor] Loading asset: StrftimeJS | |
[t::TestFlavor] Loading asset: SprintfJS | |
[t::TestFlavor] Loading asset: MicroLocationJS |
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
;; set `load-path' auto-complete and its dependencies | |
(require 'auto-complete-config) | |
(ac-config-default) | |
(global-auto-complete-mode t) |
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
diff --git a/lib/Text/Xslate/Manual/Builtin.pod b/lib/Text/Xslate/Manual/Builtin.pod | |
index 842c330..bdc51d3 100644 | |
--- a/lib/Text/Xslate/Manual/Builtin.pod | |
+++ b/lib/Text/Xslate/Manual/Builtin.pod | |
@@ -35,6 +35,14 @@ The namespace of ARRAY references is C<array>. | |
Returns true; | |
+=head3 C<$a.first()> | |
+ |
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 perl | |
use strict; | |
use warnings; | |
use File::Spec; | |
my $file = File::Spec->catfile($ENV{HOME}, ".chpwd-recent-dirs"); | |
open my $fh, '<', $file or die "Can't open file $!"; | |
my @lives; |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
if len(sys.argv) < 2: |
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
(custom-set-variables | |
'(coffee-tab-width 2)) | |
(eval-after-load "coffee-mode" | |
'(progn | |
(define-key coffee-mode-map (kbd "C-m") 'newline))) |
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
diff --git a/emamux.el b/emamux.el | |
index 6428e26..706d5e8 100644 | |
--- a/emamux.el | |
+++ b/emamux.el | |
@@ -149,6 +149,17 @@ | |
(push (match-string-no-properties 1) sessions)) | |
sessions))) | |
+(defun emamux:get-buffers () | |
+ (with-temp-buffer |
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 ruby | |
require 'open-uri' | |
require 'nokogiri' | |
require 'set' | |
old_url = 'https://raw.githubusercontent.com/auto-complete/auto-complete/master/dict/css-mode' | |
old_properties = SortedSet.new | |
open(old_url).read.each_line do |line| |