Skip to content

Instantly share code, notes, and snippets.

@simon2k
simon2k / git_verification.md
Last active September 3, 2018 21:01 — forked from stevo/git_verification.md
GIT Skills Verification

Be prepared to show following GIT CLI skills in action. All skills are required to get :

Working with GIT using CLI 🔹

  • can checkout new branch
  • can switch between branches
  • can display and understand git log
  • can add changes (progressively, all at once, selected files)
    • can split changesets when adding changes progressively
  • can edit changesets when adding changes progressively
// under-test.ts
import { myFunc } from './service';
export class UnderTest {
display() {
const val = myFunc('abc');
console.log('display');
return val;
}
// JavaScript Document
function escape_frame()
{
if (window != top)
{
alert(location.href);
top.location.href = location.href+'?checkJS=true';
}
}
// JavaScript Document
function escape_frame()
{
if (window != top)
{
alert(location.href);
top.location.href = location.href+'?checkJS=true';
}
}
class User
# created by session id to identify children
field :sessionId, String
end
class Card
field :frontMeaning, String
field :frontPicture, Picture
field :backMeaning, String
field :backPicture, Picture
@simon2k
simon2k / .tmux.conf
Created August 15, 2015 16:26
tmux config
# set-option start index
set-option -g base-index 1
# default time to repeat
set-option -g repeat-time 1000
# reload..
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"
# bind-key keys for split window
@simon2k
simon2k / gist:38ca0a95b9e94bfa58d5
Created February 12, 2015 08:59
Longest Common Subsequence
class LongestCommonSequence
def initialize(str1, str2)
@str1 = str1
@str2 = str2
@cached_lcs_for_points = {}
end
def get
get_lcs(0, 0)
end
@simon2k
simon2k / codeeval_155.rb
Created December 14, 2014 17:42
Solution for code eval 55
N = 4
class Coordinate
MAX_COORDINATE = N
MIN_COORDINATE = 0
def initialize(y, x)
@y = y
@x = x
end
class Maze
require 'singleton'
include Singleton
def process_maze_matrix(maze_matrix)
@maze_matrix = maze_matrix
set_max_coordinates_for_maze!
set_entrances_to_maze!
end
#!/bin/bash
set -e
pivotal_ticket_id=$1
function commits_from_development() {
git checkout development > /dev/null 2>&1
git log --reverse --oneline --no-abbrev-commit --grep $1 | cut -d ' ' -f 1
}