Add contents of ReadingList.sh to .bashrc or .zshrc etc.
atrl URL
atrl http://google.com
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// munged from https://github.com/simontime/Resead | |
namespace sead | |
{ | |
class Random | |
{ |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
#| | |
Generate a Hubot script (.js file) from the given Roswell script. | |
Usage: | |
$ hubotify <roswell script> |
#!/bin/sh | |
#|-*- mode:lisp -*-|# | |
#| | |
exec ros -Q -- $0 "$@" | |
|# | |
#| | |
A Roswell script to open the HyperSpec page of a specified symbol in the default browser. |
#!/bin/bash | |
# settings | |
# Login information of freenom.com | |
freenom_email="main@address" | |
freenom_passwd="pswd" | |
# Open DNS management page in your browser. | |
# URL vs settings: | |
# https://my.freenom.com/clientarea.php?managedns={freenom_domain_name}&domainid={freenom_domain_id} | |
freenom_domain_name="domain.name" |
/** | |
* A generic confirmation for risky actions. | |
* Usage: Add attributes: ng-really-message="Are you sure?" ng-really-click="takeAction()" ng-really-cancel-click="cancelAction()" function | |
*/ | |
angular.module('app').directive('ngReallyClick', [function() { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs) { | |
element.bind('click', function() { | |
var message = attrs.ngReallyMessage; |
;; This function is quoted from this page. Thanks to Tomohiro Matsuyama. | |
;; http://dev.ariel-networks.com/Members/matsuyama/pretty-lambda-in-emacs/ | |
(defun set-pretty-patterns (patterns) | |
(loop for (glyph . pairs) in patterns do | |
(loop for (regexp . major-modes) in pairs do | |
(loop for major-mode in major-modes do | |
(let ((major-mode (intern (concat (symbol-name major-mode) "-mode"))) | |
(n (if (string-match "\\\\([^?]" regexp) 1 0))) | |
(font-lock-add-keywords major-mode | |
`((,regexp (0 (prog1 () |
#speaker-note { | |
position:absolute; | |
left: 0; | |
top: 80%; | |
width: 100%; | |
height: 20%; | |
z-index: 8; | |
opacity: 0.75; | |
background-color: white; | |
overflow: auto; |
(defun anything-org-todo-list (arg) | |
(interactive "P") | |
(org-compile-prefix-format 'todo) | |
(org-set-sorting-strategy 'todo) | |
;;(org-prepare-agenda "TODO") | |
(if (and (stringp arg) (not (string-match "\\S-" arg))) (setq arg nil)) | |
(let* ((today (time-to-days (current-time))) | |
(date (calendar-gregorian-from-absolute today)) | |
(kwds org-todo-keywords-for-agenda) | |
(completion-ignore-case t) |
// copy from https://gist.github.com/1203094 | |
// gcc -o dict -Wall -fobjc-gc -O2 -std=c99 dict.m -framework carbon -framework cocoa | |
#import <Cocoa/Cocoa.h> | |
#import <CoreServices/CoreServices.h> | |
int main(int argc, char *argv[]) | |
{ | |
NSString *word; | |
NSString *result; |