Skip to content

Instantly share code, notes, and snippets.


Rashaad Essop skopp

View GitHub Profile
skopp / pythonista.rst
Created May 1, 2013 08:59
Code like a Pythonista - Tutorial
View pythonista.rst

Code Like a Pythonista: Idiomatic Python

skopp / html4noobz.html
Created November 9, 2012 21:09
HTML - The absolutely basic structure for a functional hypertext markup document. Gist is a code snippet for a blog post
View html4noobz.html
<!doctype html><html><head>
<link href=',600' rel='stylesheet' type='text/css' /></head>
<body>HI! This is a <a href="#">link</a></body>
skopp /
Created November 28, 2012 04:26 — forked from jkeesh/
Python script to create a remote git repo that checks out the latest commit with a post-receive hook
# This script creates a repository and sets it up with a post receive
# hook that checks out the code to the desired directory.
# Really nice for setting up an easy way to push code to a remote
# server without lots of overhead.
# After running this script simply add a remote locally like
# git remote add web ssh://you@server/path/to/repo.git
skopp / embeddableclip.html
Last active December 7, 2020 03:18
A simple way to embed gist into Blogger's dynamic view.
View embeddableclip.html
<!-- to do: make this parse -->
<div class="clipboardEmbedClip" data-clip-id="LQL1lDhsxPcZfc2h4vuk3E1MpI-5Xc_CPlqe" data-width="782" data-height="763" data-scale="disabled">
<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 = "//";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(elem, s);}})();
skopp /
Last active August 29, 2020 14:23
5 handy Google Search queries

5 Handy Google search techniques

these work with Google's search engine, may work with others but not tested

  1. "query" - Double quotes are used to search for a specific phrase. If you were to search for, let's say, halloween in Nebraska, not all the results will have that exact phrase. Instead, Google will treat those words as separate and show the results accordingly. However, if you do "halloween in Nebraska", only those results will show up that have the exact phrase.

  2. query -phrase - Use this to exclude something from the results. For example, if I were to search for Microsoft -Google, that means I need results that talk about Microsoft without any reference to Google.

  3. intitle:query - This can be used when you need to locate text in the title of an article. So doing a search for intitle:Windows 8 Start Screen will show the articles that have this phrase in their title.

skopp /
Last active December 22, 2015 14:29
$ gem list
*** LOCAL GEMS ***
actionpack (3.2.8)
activemodel (3.2.8)
activesupport (3.2.8)
addressable (2.2.8)
bigdecimal (1.2.0)
builder (3.0.4)
import re
import glob
import os
import sys
import fnmatch
def ConvertToLLT_19nm_Seal(addr_orig):
my_str1 = addr_orig
my_str1_length = len(my_str1)
skopp /
Created September 1, 2013 07:10
yaml serialize perl
use strict;
use warnings;
use Getopt::Long;
use Benchmark::Serialize qw( cmpthese );
my @benchmark = (); # package names of benchmarks to run
my $iterations = -1; # integer
skopp /
Created September 1, 2013 07:06
why the lucky stiff - syck
package JSON::Syck;
use strict;
use YAML::Syck ();
$JSON::Syck::VERSION = '0.13';
*Load = \&YAML::Syck::LoadJSON;
*Dump = \&YAML::Syck::DumpJSON;
$JSON::Syck::ImplicitTyping = 1;