Skip to content

Instantly share code, notes, and snippets.

@smartperson
smartperson / kitchen_sink.css
Created Jul 16, 2014
Generated css when the scss file contains @import "foundation_and_overrides"
View kitchen_sink.css
/* small displays */
@media only screen {
.show-for-small-only, .show-for-small-up, .show-for-small, .show-for-small-down,
.hide-for-medium-only, .hide-for-medium-up, .hide-for-medium, .show-for-medium-down,
.hide-for-large-only, .hide-for-large-up, .hide-for-large, .show-for-large-down,
.hide-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xlarge, .show-for-xlarge-down,
.hide-for-xxlarge-only, .hide-for-xxlarge-up, .hide-for-xxlarge,
.show-for-xxlarge-down {
display: inherit !important;
}
View Ha, spam comment including its grammar.
{
{I have|I’ve} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting
article like yours. {It’s|It is} pretty worth enough for me.
{In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made
good content as you did, the {internet|net|web} will be {much more|a lot more} useful than ever before.|
I {couldn’t|could not} {resist|refrain from} commenting.
{Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I’ll} {right away|immediately} {take hold
of|grab|clutch|grasp|seize|snatch} your {rss|rss feed}
as I {can not|can’t} {in finding|find|to find}
View Gemfile
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.13'
#
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'koala'
View mbot_serial.notes
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
@smartperson
smartperson / com.varunmehta.ttymbot.plist
Created Jun 15, 2017
/Library/LaunchDaemons/com.varunmehta.ttymbot.plist
View com.varunmehta.ttymbot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.varunmehta.ttymbot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/scripts/ttymbot.sh</string>
@smartperson
smartperson / ttymbot.sh
Created Jun 15, 2017
/usr/local/scripts/ttymbot.sh
View ttymbot.sh
#!
ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1d10 /dev/tty.mbot
@smartperson
smartperson / meter.ps
Created Aug 28, 2017
postscript file to generate custom labels for analog meters
View meter.ps
%!Postscript File
% This file generates meter faces.
% Copyright (c) 2004, Jennifer Elaan
% Circuit Corner 2004.
% Free for any use so long as this copyright notice
% remains intact.
% ------------------------------------------------------
% These are unit definitions. They define conversion factors for
% common units like mils, inches, millimeters, etc.
@smartperson
smartperson / sensible_character_map.md
Last active Sep 3, 2017
LCD character codes read from Logitech Z680 control pod
View sensible_character_map.md
Letter Code (hex) Code (binary stripped) Code (rev. binary) Code (rev. hex)
D 20 20 0010 0010 0100 0100 44
E A0 20 1010 0010 0100 0101 45
I 90 20 1001 0010 0100 1001 49
N 70 20 0111 0010 0100 1110 4E
O F0 20 1111 0010 0100 1111 4F
a 80 60 1000 0110 0110 0001 61
c C0 60 1100 0110 0110 0011 63
e A0 60 1010 0110 0110 0101 65
View weird email.md

Billing address

Smart Ass

666

Atlanta, GA 30331

Additional information

@smartperson
smartperson / virt_machine.xml
Created Feb 21, 2018
My libvirtd xml setup for my computer
View virt_machine.xml
<domain type='kvm'>
<name>generic-2</name>
<uuid>f7050b8f-4e77-4eb4-b1bf-f00aaefa6726</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>8</vcpu>
<os>