Skip to content

Instantly share code, notes, and snippets.

View guidoschmidt's full-sized avatar

Guido Schmidt guidoschmidt

View GitHub Profile
@guidoschmidt
guidoschmidt / keybase.md
Created January 28, 2018 21:19
Keybase

Keybase proof

I hereby claim:

  • I am guidoschmidt on github.
  • I am guidoschmidt (https://keybase.io/guidoschmidt) on keybase.
  • I have a public key ASCkFRodWlXZFhkhghdMC2EXh1DywWxCx0SuwCXkOw2_ggo

To claim this, I am signing this object:

#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
varying vec4 vertColor;
varying vec3 vertNormal;
varying vec3 vertLightDir;
varying vec4 vertTexCoord;
@guidoschmidt
guidoschmidt / todo.el
Created January 19, 2018 20:06 — forked from prathik/todo.el
Manage daily todo files on Emacs
(defun create-directory (directory)
"Creates the todo directory."
(if (file-exists-p directory) (message "Director exists")
(make-directory directory)
(message "Directory created")
))
(defun create-todo-file (directory filename)
"Checks if the todo file exists if not creates it."
(create-directory directory)
@guidoschmidt
guidoschmidt / ycm_extra_conf.py
Created January 7, 2018 00:02 — forked from nilsdeppe/ycm_extra_conf.py
A Python script used by https://github.com/Valloric/ycmd to provide code completion in header files.
#!/bin/env python
# Copyright Nils Deppe, 2017
# Distributed under the Boost Software License - Version 1.0
# Boost Software License - Version 1.0 - August 17th, 2003
# Permission is hereby granted, free of charge, to any person or organization
# obtaining a copy of the software and accompanying documentation covered by
# this license (the "Software") to use, reproduce, display, distribute,
@guidoschmidt
guidoschmidt / org-ref-skim.el
Created December 20, 2017 12:17 — forked from fuxialexander/org-ref-skim.el
Integration between Org-ref and Skim.app
(setq org-capture-templates (quote (("SA" "Skim Annotation" entry
(file+function org-ref-bibliography-notes my-org-move-point-to-capture-skim-annotation)
"* %^{Logging for...} :skim_annotation:read:literature:
:PROPERTIES:
:Created: %U
:CITE: cite:%(my-as-get-skim-bibtex-key)
:SKIM_NOTE: %(my-org-mac-skim-get-page)
:SKIM_PAGE: %(my-as-get-skim-page)
:END:
%i
@guidoschmidt
guidoschmidt / python.el
Created November 19, 2017 09:46
Emacs python setup
;;; python.el --- Python Language/IDE settings
;;; Commentary:
;;; Code:
;;; --- Python
(use-package elpy
:ensure t
:config
(setq elpy-rpc-python-command "python3")
(setq python-shell-interpreter "python3")
@guidoschmidt
guidoschmidt / _responsive-font-size.sass
Last active October 28, 2017 18:38
SASS responsive-font-size
$screensize-phones: 480px
$screensize-desktops: 1280px
$font-size-min: 16px
$font-size-max: 32px
@function strip-unit($number)
@if type-of($number) == 'number' and not unitless($number)
@return $number / ($number * 0 + 1)
@return $number
@guidoschmidt
guidoschmidt / .eslintrc.js
Created October 5, 2017 19:03
Example .eslintrc.js
// $ cat .eslintrc.js
module.exports = {
'env': {
'browser': true,
'meteor': true,
'node': true,
'es6': true
},
'extends': 'eslint:recommended',
'parserOptions': {
@guidoschmidt
guidoschmidt / adb-screenshot.sh
Created September 18, 2017 14:42
Android Screenshot via adb
./adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
@guidoschmidt
guidoschmidt / about.md
Created September 17, 2017 19:31 — forked from mattdesl/about.md

procedural mesh generation

Generates an algorithmic 3D OBJ file with ThreeJS and Node.js.

# print to stdout
node generate-mesh.js > test.obj

# write to file
node generate-mesh.js test.obj