Skip to content

Instantly share code, notes, and snippets.

Sam Parkinson samdroid-apps

Block or report user

Report or block samdroid-apps

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View podcast.txt
*Bubble sound effect fading out^
*Splash sound effect*
Agent 1: Where is it? Where did you hide it ?
Ivan: Huh?
Agent 1: The hard disk?
Ivan: You must look inside your heart and to find the motherland…*incoherent mumbling: UglyfyJS2, top the download charts of NPM it vill; trust me* -* gets splashed*
@samdroid-apps
samdroid-apps / btrfs-nixos-install.sh
Last active Mar 7, 2019 — forked from alcol80/btrfs-nixos-install.sh
nixos install (boot + btrfs)
View btrfs-nixos-install.sh
mkfs.vfat -n BOOT /dev/sda1
mkfs.btrfs -L root /dev/sda2
mount -t btrfs /dev/sda2 /mnt/
btrfs subvolume create /mnt/nixos
umount /mnt/
mount -t btrfs -o subvol=nixos /dev/sda2 /mnt/
btrfs subvolume create /mnt/var
btrfs subvolume create /mnt/home
btrfs subvolume create /mnt/tmp
View keybase.md

Keybase proof

I hereby claim:

  • I am samdroid-apps on github.
  • I am samtoday (https://keybase.io/samtoday) on keybase.
  • I have a public key ASDfACD4DDRtbMe2V58cDx6Y12J-nhJB3pktPNkSQDnAAwo

To claim this, I am signing this object:

View dabblet.css
/**
* Cool Locks
*/
background: linear-gradient(-45deg, rgba(255, 255, 255, 0) 25%, #C16 25%, #C16 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 75%, #C16 75%, #C16),
linear-gradient(45deg, rgba(255, 255, 255, 0) 25%, #AC0 25%, #AC0 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 75%, #AC0 75%, #AC0),
radial-gradient(red, yellow);
background-size: 200px 200px, 200px 200px, auto;
min-height: 100%;
@samdroid-apps
samdroid-apps / 0_reuse_code.js
Created Apr 27, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@samdroid-apps
samdroid-apps / main.py
Last active Aug 29, 2015
maths-fractal-area
View main.py
import math
# This is run recusivly
# s is the length of the squares sides
# x is a counter
def f(s, x):
if x == 1: # if x = 1 then
# return returns the value and quits the function
return s * s # Just return the square if we are on the end
View gist:9008602
** Message: pygobject_register_sinkfunc is deprecated (HippoCanvasBox)
Traceback (most recent call last):
File "/usr/bin/sugar-activity", line 164, in <module>
main()
File "/usr/bin/sugar-activity", line 122, in main
module = __import__(module_name)
File "/home/olpc/Activities/Develop.activity/develop_app.py", line 45, in <module>
import logviewer
File "/home/olpc/Activities/Develop.activity/logviewer.py", line 36, in <module>
from sourceview_editor import SearchablePage
@samdroid-apps
samdroid-apps / gist:8087172
Last active Jan 1, 2016
Canvas Github-Code-Stats-Style Graph for Flask
View gist:8087172
<canvas id="myCanvas" height="20">
YOUR BROWSER IS TOO OLD
</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var MAX = c.scrollWidth;
@samdroid-apps
samdroid-apps / selector.py
Last active Dec 29, 2015
Python3 thumby folder selector. In GTK.
View selector.py
import os
from gi.repository import Gtk
path_to_file = {}
def getDirs(path, parent_item, tree_data_store):
if os.path.exists(path):
for file in os.listdir(path):
filepath = os.path.join(path, file)
if os.path.isdir(filepath):
You can’t perform that action at this time.