Skip to content

Instantly share code, notes, and snippets.

@nahcnuj
nahcnuj / CODE_RUNNER_qualB.cpp
Created November 2, 2014 14:58
CODE RUNNER 予選 B のコードです(とても汚い). 一応, トークンは伏せました.
#include <string>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <utility>
#include <algorithm>
#include <sstream>
#include <ctime>
(require 'org)
(require 'org-pomodoro)
(require 'json)
(require 'request)
(defconst org-recodoro "0.0.1"
"The version of the org-recodoro lisp code.")
(defgroup org-recodoro nil
"Record your pomodoro through API and see your achievements."

Download the inspect-registers.vim file from this gist. Open the file in Vim, launching with no vimrc:

vim -Nu NONE inspect-registers.vim

Source the file:

:source %

Insert text on line one:

@andphe
andphe / gist:3232343
Created August 2, 2012 01:41
Export your links from Safari reading list
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g'
@yasith
yasith / gist:1508312
Created December 22, 2011 00:11
solarized fix for .vimrc
set t_Co=256
set background=dark
if !has('gui_running')
let g:solarized_termcolors=&t_Co
let g:solarized_termtrans=1
endif
colorscheme solarized
@canton7
canton7 / 0main.md
Last active November 7, 2023 08:16
Local versions of tracked config files

How to have local versions of tracked config files in git

This is a fairly common question, and there isn't a One True Answer.

These are the most common techniques:

If you can modify your application

@boriscy
boriscy / install-ruby-debug-ubuntu-ruby-1.9.3
Created November 1, 2011 18:57
ruby-debug in ruby-1.9.3 and ubuntu
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883
linecache19-0.5.13.gem
ruby_core_source-0.1.5.gem
ruby-debug19-0.11.6.gem
ruby-debug-base19-0.11.26.gem
#Then in your console
export RVM_SRC=/your/path/to/ruby-1.9.3