Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://atcoder-tags.herokuapp.com/tag_search/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
@uk-ar
uk-ar / The Technical Interview Cheat Sheet.md
Created June 3, 2018 20:53 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@uk-ar
uk-ar / B89C-4.js
Created September 28, 2017 11:22
null created by uk_ar - https://repl.it/B89C/4
console.log('hello github');
"ISBN" "タイトル" "著者" "出版社" "出版日" "価格" "ステータス" "レート" "予約日" "受取日" "受取図書館" "読了日/返却日" "登録日" "更新日" "説明" "メモ"
"9784032062304" "からすのてんぷらやさん" "かこさとし" "偕成社" 2013年05月14日 "¥ 1188" "読んだ" 0 "" 2015-03-07 2015-03-07 2015-03-07 "いずみがもりに「からすのパンやさん」がありました。ちいさかった4わの子どもたちは、おおきくなってりっぱなわかものと、きれいなむすめになりました。火事でお店がやけてしまい、おちこむてんぷらやさんを励ます、心やさしいレモンちゃんのおはなし。4歳から。" ""
"9784834023756" "サンドイッチサンドイッチ" "小西英子(絵本)" "福音館書店" 2008年09月 "¥ 864" "読んだ" 0 "" 2015-03-07 2015-03-07 2015-03-07 "サンドイッチを作ろう!パンにバターを塗って、しゃきしゃきレタスに真っ赤なトマト、大きなチーズをのせたら、次は何をのせようかな?思わず触りたくなるようなふわふわのパンや、みずみずしく色鮮やかな野菜など、おいしそうな食べ物が次々と登場します。" ""
"9784834000504" "てぶくろ" "エヴゲーニ・ミハイロヴィチ・ラチョフ" "福音館書店" 2008年04月 "¥ 1080" "読んだ" 0 "" 2015-03-07 2015-03-07 2015-03-07 "" ""
"9784772100908" "かおかおどんなかお" "柳原良平" "こぐま社" 1988年01月 "¥ 864" "読んだ" 0 "" 2015-03-07 2015-03-07 2015-03-07 "まんまる顔の笑い顔。かなしい顔はらっきょう顔。ひょうたん顔の泣き虫顔。いろんな顔がいっぱい!あー、このかおおとうさんみたい。そんなことばがきこえてきそう。柳原良平、待望の新刊絵本。" ""
> node
var Rx = require('rx');
var source = Rx.Observable.interval(500 /* ms */).timeInterval().take(3);
var source = Rx.Observable.from([1,2]);
var source = Rx.Observable.interval(1000).do(i=>console.log("s:",i)).map(
n=>{if(n === 2) {
throw 'ex';
}
return n;
foo=0
bar=1
baz=2
@uk-ar
uk-ar / thin
Created March 28, 2013 00:27 — forked from sorah/thin
#!/bin/bash
DAEMON=/path/to/thin
BUNDLE=/path/to/bundle
CONFIG_PATH=/etc/thin
SCRIPT_NAME=/etc/init.d/thin
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
@uk-ar
uk-ar / gist:5249315
Last active December 15, 2015 10:59
$(function(){
var raw_data;
var positions = [];
$('#wiki-body').each(function(){
var txt = $(this).html();
var checkbox = '<input class="task-list" type="checkbox" '
$(this).html(
txt.replace(/\[x\]/g, checkbox + 'checked>').
replace(/\[ \]/g, checkbox + '>')
);
var raw_data;
var positions = [];
$(function(){
$('#wiki-body').each(function(){
var txt = $(this).html();
var checkbox = '<input class="task-list" type="checkbox" '
$(this).html(
txt.replace(/\[x\]/g, checkbox + 'checked>').
replace(/\[ \]/g, checkbox + '>')
);
(defun my-hook-function ()
(add-to-list 'flex-autopair-pairs '(?\" . ?\")))
(add-hook 'nxml-mode-hook 'my-hook-function)