Skip to content

Instantly share code, notes, and snippets.

View jonasem's full-sized avatar

Jonas jonasem

  • Webstep
  • Trondheim
View GitHub Profile
[
{
"img": "http:\/\/www.webstep.no\/wp-content\/uploads\/2010\/02\/Webstep_Trondheim_Save_Asmervik-110x150.png",
"name": "Save Asmervik",
"position": "Avdelingsdirekt\u00f8r",
"mail": "mailto:[email protected]",
"phone": "+47 993 75 446",
"url": "http:\/\/www.webstep.no\/ansatte\/save-asmervik\/"
},
{
alias gaa="git add --all ."
alias gac="git add --all . && git commit -m"
alias gb="git branch"
alias gc='git commit -m'
alias gco='git checkout'
alias gd='git diff'
alias gds='git diff --staged'
alias gf='git fetch'
alias glg='git log --oneline --decorate --color --graph --max-count=8'
alias gpl='git pull'
@jonasem
jonasem / index.html
Last active August 29, 2015 14:17
marked + mermaid + jquery.get
<!DOCTYPE html>
<html>
<head>
<title>Endringslogg</title>
<style type="text/css">
body {
background: #efefef;
}
div.content {
margin: auto;
@jonasem
jonasem / gist:28dd79a6bc803c3c44fa
Last active August 29, 2015 14:11
nice web resources
@jonasem
jonasem / git.lua
Last active November 19, 2022 22:14
git status peek in prompt for clink
---
-- Find out current branch
-- @return {false|git branch name}
---
function get_git_branch()
for line in io.popen("git branch 2>nul"):lines() do
local m = line:match("%* (.+)$")
if m then
return m
end