Skip to content

Instantly share code, notes, and snippets.

View sodevious's full-sized avatar
💅
building prettyfabnails.com

nicole sodevious

💅
building prettyfabnails.com
View GitHub Profile
@sodevious
sodevious / fl_schools.py
Last active August 29, 2015 14:05
This function generates possibilities of school names in Florida. Because seemingly that's how they all were named!
import random
florida_nouns = ['coral', 'glades','west', 'broward','pines','north','coconut','dolphin',
'palm','silver','lakes','bay','everglades','cypress','creek','beach','south',
'park','shores','sunset','springs','crystal','trail','hollywood']
school_kind = ['Elementary School', 'High School', 'Middle School', 'Charter School']
coin = ['heads','tails']
@sodevious
sodevious / variables.py
Created October 29, 2014 19:00
terrible variable names
import random
florida_nouns = ['coral', 'glades','west', 'broward','pines','north','coconut','dolphin',
'palm','silver','lakes','bay','everglades','cypress','creek','beach','south',
'park','shores','sunset','springs','crystal','trail','hollywood']
school_kind = ['Elementary School', 'High School', 'Middle School', 'Charter School']
coin = ['heads','tails']

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@sodevious
sodevious / gist:7032170
Created October 17, 2013 21:03
Error running jekyll serve --watch, help?!
Configuration file: /Users/nicole/sites/nicoledominguez/_config.yml
/Users/nicole/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require': cannot load such file -- sass/script/node (LoadError)
from /Users/nicole/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
from /Users/nicole/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
from /Users/nicole/.rvm/gems/ruby-2.0.0-p0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
from /Users/nicole/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/nicole/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require'
from /Users/nicole/.rvm/gems/ruby-2.0.0-p0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <to
{% for post in site.categories['portfolio'] %}
<article>
<header>
<h2 class="work-title">{{post.title}}</h2>
<h3 class="work-type">{{post.type}}</h3>
{% if post.site_url %}<a class="work-link icon-web" href="{{post.site_url}}"><span>View</span></a>{% endif %}
</header>
{{post.content}}
</article>
{% endfor %}
@sodevious
sodevious / duh.txt
Created October 19, 2013 01:58
jekyll links a better way
Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll's GitHub repo][jekyll-gh].
[jekyll-gh]: https://github.com/mojombo/jekyll
[jekyll]: http://jekyllrb.com
@sodevious
sodevious / contracting-rate-info.js
Created May 11, 2016 18:04 — forked from jonathanmarvens/contracting-rate-info.js
Use this little Gist to calculate your contracting rate information. It's a very simple formula. Note: *YMMV* ... my formula may or may not work for you.
function contractingRateInfo( options ) {
var
committed_days,
committed_days_cost,
committed_hours,
committed_hours_cost,
hourly,
weekly
;

Get all but last in an array

var secondLocation =  location.splice(-(location.length) + 1);

@sodevious
sodevious / email-scrape.py
Created March 3, 2017 16:15 — forked from sladjandr/email-scrape.py
Scrape all mailto links from a page - Python
import requests
import xlwt
from bs4 import BeautifulSoup
wb = xlwt.Workbook()
ws = wb.add_sheet('Emails')
ws.write(0,0,'Emails')
emailList= []