Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
@skopp
skopp / README.rst
Last active December 14, 2015 23:59 — forked from dupuy/README.rst
Markdown and REStructuredText syntax - MD / RST

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

require 'rubygems'
require 'jekyll'
require 'fileutils'
require 'posterous'
require 'net/http'
require 'URI'
Posterous.config = {
'username' => ARGV[0],
'password' => ARGV[1],

CSS Frameworks Comparison

TL;DR

If I should pick only one framework for all my projects, both prototyping and production, I would go with either Bootstrap or Foundation and then improve them depending on my needs, eventually by using nice ideas from other frameworks. Since I'm a LESS user, I will probably go with Bootstrap, but if Foundation would have been build with LESS too, I would have been in deep s****.

Players

@bkabrda
bkabrda / gist:5202929
Created March 20, 2013 07:29
PyGitHub python3 failures
running test
running build_py
running egg_info
writing /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/PKG-INFO
writing top-level names to /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/top_level.txt
writing dependency_links to /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/dependency_links.txt
reading manifest file '/builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/SOURCES.txt'
writing manifest file '/builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/SOURCES.txt'
running build_ext
testAttributes (github.tests.AuthenticatedUser.AuthenticatedUser) ... ok
@skopp
skopp / embeddableclip.html
Last active December 7, 2020 03:18
A simple way to embed gist into Blogger's dynamic view.
<!-- to do: make this parse -->
<div class="clipboardEmbedClip" data-clip-id="LQL1lDhsxPcZfc2h4vuk3E1MpI-5Xc_CPlqe" data-width="782" data-height="763" data-scale="disabled">
</div>
<script type="text/javascript">(function() {if (!window.CLIPBOARD || !window.CLIPBOARD.widgets) {var elem = document.createElement("script");elem.type = "text/javascript";elem.async = true;elem.src = "//clipboard.com/js/widgets.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(elem, s);}})();
</script>
@skopp
skopp / index.html
Last active December 15, 2015 08:19
The Matrix Console in JS
<canvas id="q"></canvas>
@max-mapper
max-mapper / readme.md
Created March 24, 2013 00:54
sudoroom engraver CNC instructions

sudoroom CNC machine instructions

it is composed of a few components:

  • an internet connected desktop windows PC that runs special software: mach3 (icon on desktop)
  • a hacked engraver that does the milling
  • a stepper driver that sits between the PC and the engraver and communicates via parallel port

mach3 only accepts geecode. you can either use your own geecode or use the program on the PC called CamBam to generate the geecode.

@czottmann
czottmann / gist:5231707
Last active December 15, 2015 08:29
Stack traces for https://app.gistboxapp.com/library/my-gists [Google Chrome 26.0.1410.40 beta]
Uncaught TypeError: Cannot read property 'login' of null frontend.js:15
_.Class.formatGist frontend.js:15
(anonymous function) frontend.js:15
x.each.x.forEach frontend.js:6
h.(anonymous function) frontend.js:7
_.Class.formattedGists frontend.js:15
_.Class.starredGists frontend.js:15
Backbone.View.extend.render frontend.js:16
Backbone.View.extend.initialize frontend.js:16
o.View frontend.js:7
@max-mapper
max-mapper / readme.md
Created March 31, 2013 05:23
what are mipmaps?

thanks to @mikolalysenko for explaining

20:14 < mikolalysenko> basically mip maps were a hack some guy came up with in the 80s to do filtering with variable sized kernels
20:14 < mikolalysenko> it turns out that if you just draw a texture at full resolution some distance away, then you will get these shimmering aliasing 
                       artefacts
20:14 < mikolalysenko> so the solution to this is to just smooth out the texture, so it isn't so noisy
20:15 < mikolalysenko> however the amount you smooth has to be proportional to the distance
20:15 < mikolalysenko> so what a mip pyramid basically is just a collection of filtered images at different down sampled resolutions
20:15 < mikolalysenko> and you can interpolate between them to approximate a blur by a kernel of variable radius
...___________________________________________________________________________
[[ _ _ _ _ _ |
[[ | | (_) | | | | | |
[[ ___| | _____ _ __ _ __ ___ _ __ __ _ _| |_| |__ _ _| |__ |
[[ / __| |/ / _ \| '_ \| '_ \ / _ \| '_ \ / _` | | __| '_ \| | | | '_ \ |
[[ \__ \ < (_) | |_) | |_) | | (_) | | | | | (_| | | |_| | | | |_| | |_) | |
[[ |___/_|\_\___/| .__/| .__/ \___/|_| |_| \__, |_|\__|_| |_|\__,_|_.__/ |
[[ | | | | __/ | |
[[ |_| |_| |___/ |
[[..........................................................................._/