Skip to content

Instantly share code, notes, and snippets.

View Slava's full-sized avatar
💭
한국어를 공부하는 중

Slava Kim Slava

💭
한국어를 공부하는 중
View GitHub Profile
@Slava
Slava / 500.cpp
Last active August 29, 2015 14:14
#include <iostream>
#include <set>
#include <vector>
#include <cmath>
using namespace std;
typedef pair<long long, long long> pii;
set<pii> pq;
let blacklists = ["chrome://newtab*"]
moved to https://github.com/Slava/tern-meteor
<head>
<title>testappp</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Hello World!</h1>
@Slava
Slava / how-to-merge-my-branch-to-devel.md
Created May 9, 2013 19:36
[how-to][git] Merge my branch to `devel` branch

Merge my branch to devel

Let's say I have branch send-stats, and I have couple of commits which I need to squash and merge to devel branch.

Follow these steps:

  • git checkout send-stats - switch to my branch
  • git rebase -i devel - rebase interactively relatively to devel, here we need to squash all commits to the first one
  • in vim: :2,$s/pick/f/ - relaces picks to f for every line except first one - indicates those commits as 'to squash'
@Slava
Slava / metrobone.js
Last active December 16, 2015 01:39 — forked from jrtipton/metrobone.js
Metrobone tries to convert your Backbone models to view-models using getViewModel method if such exists or toJSON otherwise.
// Metrobone.js 0.0.2
//
// J.R. Tipton @jrtipton
// Metrobone is a wimpy little utility library for
// making Backbone.js integrate with WinJS controls
// (for Windows 8 development) a little easier.
//
// Two basic ways to use this overly verbose little
// guy:
//