git push origin :fakebranch
git pull origin
git merge master
git push remote local_branch:remote_branch
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" XF86AudioPlay | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" XF86AudioStop | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" XF86AudioNext | |
| "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" XF86AudioPrevious |
| // ShaderToy Inputs | |
| uniform vec3 iResolution; // viewport resolution (in pixels) | |
| uniform float iGlobalTime; // shader playback time (in seconds) | |
| const float PI=3.14159265358979323846; | |
| float round( float x ) { | |
| float val = mod( x, x ); | |
| if( val >= 0.5 ){ | |
| return ceil( x ); |
| # Empty |
| @app.route('/login/<provider_name>', methods=['GET', 'POST']) | |
| @authomatic.login('g') | |
| @requires_ssl | |
| def login(provider_name): | |
| if g.user is not None and g.user.is_authenticated(): | |
| return redirect(url_for('index')) | |
| if authomatic.result: | |
| if authomatic.result.error: | |
| return 'Something went wrong: {0}'.format(authomatic.result.error.message) | |
| if authomatic.result.user: |
| class Polygon(EventDispatcher): | |
| abs_vertices = ListProperty([]) | |
| x = NumericProperty(0) | |
| y = NumericProperty(0) | |
| scale = NumericProperty(1) | |
| def __init__(self, **kwargs): | |
| super(Polygon, self).__init__(**kwargs) | |
| self.abs_vertices = [] |
| #!/usr/bin/python | |
| # By Brad Goodman | |
| # http://www.bradgoodman.com/ | |
| # brad@bradgoodman.com | |
| ####################### Fill in settings below ####################### | |
| USERNAME="your@emailaddress.com" | |
| PASSWORD="your_total_comfort_password" |
| // SpatialHash uniform-grid implementation | |
| // Broad-phase algorithm for collision detection | |
| // Andrei Rudenko // SpatialHash.hx (24.07.2016) | |
| import luxe.Vector; | |
| import luxe.utils.Maths; | |
| class SpatialHash { | |
| public var min(default, null):Vector; |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
| from array import array | |
| from kivy.app import App | |
| from kivy.lang import Builder | |
| from kivy.graphics.fbo import Fbo | |
| from kivy.graphics.texture import Texture | |
| from kivy.uix.widget import Widget | |
| from kivy.properties import ListProperty, ObjectProperty | |
| KV = ''' |