Skip to content

Instantly share code, notes, and snippets.

View sheljohn's full-sized avatar
🐇
Knock, knock.

Jonathan H sheljohn

🐇
Knock, knock.
  • Oxford
View GitHub Profile
@remy
remy / gist:2484402
Created April 24, 2012 22:45
jquery.marquee.js
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
@bjorgvino
bjorgvino / yosemite ntfs read+write.txt
Last active December 2, 2021 03:58
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
@yuliji
yuliji / unicode_block.py
Created March 23, 2018 06:57
[unicode_range] unicode block check, need python3
# coding: utf-8
UNICODE_RANGES = \
[[u'\x00', u'\x1f', u'Control character'],
[u' ', u'\x7f', u'Basic Latin'],
[u'\x80', u'\xff', u'Latin-1 Supplement'],
[u'\u0100', u'\u017f', u'Latin Extended-A'],
[u'\u0180', u'\u024f', u'Latin Extended-B'],
[u'\u0250', u'\u02af', u'IPA Extensions'],
[u'\u02b0', u'\u02ff', u'Spacing Modifier Letters'],
@fprimex
fprimex / nonroot.sh
Created February 15, 2014 02:13
Non-root package installs under opensuse
mkdir -p ~/local/var/lib
mkdir ~/local/etc
cd ~/local/etc
cp -R /etc/zypp .
cd ~/local/var/lib
cp -R /var/lib/rpm .
cd
cat >> ~/.bashrc << 'EOF'
export PATH="$HOME"/local/usr/bin:"$PATH"
@yurivictor
yurivictor / tabs.html
Created February 28, 2012 17:16
Simple jquery sliding tabs
<style>
.tabs { border-bottom: 1px solid #d4d4d4; padding-left: 0; }
.tabs a { background: #eee; border: 1px solid #d4d4d4; color: #6a6a6a; display: block; float: left; line-height: 36px; margin-bottom: -1px; padding: 0 10px; text-decoration: none; }
.tabs li { list-style: none; }
.tabs .active { background: #fff; border-bottom: 0; color: #2c2c2c; font-weight: 700; padding-bottom: 1px; }
.hide { display: none; }
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }
</style>