Skip to content

Instantly share code, notes, and snippets.

Avatar

Rashaad Essop skopp

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

Code Like a Pythonista: Idiomatic Python

@skopp
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='http://fonts.googleapis.com/css?family=Titillium+Web:400,600' rel='stylesheet' type='text/css' /></head>
<div>
<style>body,html{background-color:brown;font-family:Titillium,arial,sans-serif;font-weight:400;color:pink;}a{font-family:Titillium,arial,sans-serif;font-weight:600;color:white;}</style>
<body>HI! This is a <a href="#">link</a></body>
</div></body></html>
@skopp
skopp / create_repo.py
Created November 28, 2012 04:26 — forked from jkeesh/create_repo.py
Python script to create a remote git repo that checks out the latest commit with a post-receive hook
View create_repo.py
#
# 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
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">
</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 / google_queries.md
Last active August 29, 2020 14:23
5 handy Google Search queries
View google_queries.md

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
skopp / gem_list.sh
Last active December 22, 2015 14:29
View gem_list.sh
$ 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)
View Python_test2.py
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
skopp / serialize.pl
Created September 1, 2013 07:10
yaml serialize perl
View serialize.pl
#!/usr/bin/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
skopp / syck.pm
Created September 1, 2013 07:06
why the lucky stiff - syck
View syck.pm
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;