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
@anschaef
anschaef / bootstrap-4-sass-mixins-cheat-sheet.scss
Last active April 12, 2024 08:49
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.5.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/master/scss/mixins
/* -------------------------------------------------------------------------- */
/*
// ########################################################################## */
// New cheat sheet for Bootstrap 5:
@lightstrike
lightstrike / admin.py
Last active December 21, 2022 03:11
Before Import Customization for Django-Import-Export
class OrganizationImportExportResource(ModelResource):
types = widgets.ManyToManyWidget(model=graph_models.OrganizationType,
field='name')
class Meta:
model = Organization
fields = [
'name',
]
import_id_fields = ['name']
@bobbygrace
bobbygrace / trello-css-guide.md
Last active May 15, 2024 16:01
Trello CSS Guide

Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets


Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

Jenn Schiffer and I are doing diversity sponsorships for http://2014.speakercampboston.com/

We need new voices and different viewpoints, and I figure anyone that wants to make the industry stronger should be helping promote those voices however they can. Then maybe one or two people in a future audience find themselves relating in ways that they wouldn’t relate to another straight-white-cis guy up on stage. Suddenly they’re thinking “hey, I could do that too—I could be up there.” That’s how we change things; that’s how we catalyze a more diverse industry.

Selfishly? I’m sick of seeing a bunch of me on stage. I’ve been me; I already think like me. I can only learn so much from someone with experiences so similar to mine. I want to learn from you. I want to be made to think about things I’d never considered before; to see things in a different way. That makes me better—that makes better developers, better people. That makes tech a more thoughtful, more empathetic place—and Christ, do we need more of that.

@nex3
nex3 / out.md
Last active March 28, 2024 14:40

So: I’m trans.

First things first. I’ve taken “Natalie” as my new name and I use female (“she”) or neutral (“they”) pronouns. If you get these wrong, I’ll gently remind you, but don’t worry: I’m not upset.

Practically speaking, not much is changing beyond my name, pronouns, and presentation. I’m still happily engaged to Liz and I’m still working on both Dart and Sass. Expect considerably more pictures of me in cute outfits and complaints about laser hair removal, but otherwise my social media will remain largely the same.

In terms of my identity, I consider myself to be a trans woman but also to be gender non-binary. When I first started understanding myself as trans, I was motivated mostly by a feeling of alienation from masculinity, and I described myself as genderqueer. As I’ve explored femininity more since then, I’ve found myself comfortable with it to varying degrees in various situations. The whole thing is complicated and I’m still working on understanding it m

@Kartones
Kartones / postgres-cheatsheet.md
Last active May 19, 2024 17:20
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@jgatjens
jgatjens / direcory_tag.rb
Created February 10, 2014 22:03
jekyll-plugin loop_directory
#usage:
#{% loop_directory directory:images iterator:image filter:*.jpg sort:descending %}
# <img src="{{ image }}" />
#{% endloop_directory %}
module Jekyll
class LoopDirectoryTag < Liquid::Block
include Liquid::StandardFilters
Syntax = /(#{Liquid::QuotedFragment}+)?/
@jonathanmarvens
jonathanmarvens / contracting-rate-info.js
Last active September 29, 2017 22:51
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
;
@malarkey
malarkey / Contract Killer 3.md
Last active May 17, 2024 15:28
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………

@laander
laander / hosted-bookmarklet.jquery.js
Created December 22, 2010 00:09
A nifty tool for creating hosted javascript browser bookmarklets supporting jQuery
/**
* Hosted jQuery Bookmarklet
* @description A nifty tool for creating hosted javascript browser bookmarklets supporting jQuery
* @author Laander (http://laander.com) at Konscript (http://konscript.com)
* @gist https://gist.github.com/gists/750857
*/
/**
* Usage:
* The following snippet should be the link saved as a bookmarklet by the user.