Skip to content

Instantly share code, notes, and snippets.

View kasparsbergs's full-sized avatar
🍉
x2

Kaspars Bergs kasparsbergs

🍉
x2
View GitHub Profile
@kasparsbergs
kasparsbergs / .bashrc
Created March 14, 2019 23:05
git branch in terminal, i/o starts on a new line
# Add git branch if its present to PS1
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\n$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ '
fi
@kasparsbergs
kasparsbergs / cloudSettings
Last active February 27, 2017 07:20
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-02-27T07:20:33.373Z","extensionVersion":"v2.5.1"}
--- a/cogl/driver/gl/gl/cogl-driver-gl.c
+++ b/cogl/driver/gl/gl/cogl-driver-gl.c
@@ -403,9 +403,13 @@
&ctx->glsl_minor);
}
- if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 2))
- /* We want to use version 120 if it is available so that the
- * gl_PointCoord can be used. */
+ if (COGL_CHECK_GL_VERSION (ctx->glsl_major, ctx->glsl_minor, 1, 5))