Skip to content

Instantly share code, notes, and snippets.

View KaraAJC's full-sized avatar
🦄
werk

Kara A Carrell KaraAJC

🦄
werk
View GitHub Profile
@tsuharesu
tsuharesu / words_from_the_heart.slackworkflow
Last active November 3, 2020 20:51
A simple workflow to send some kind anonymous words for your colleagues.
{
"source_id": "302598399050397860",
"version": "1",
"workflow": {
"name": "Words from the Heart",
"blueprint": {
"version": "1",
"trigger": {
"type": "channel_action",
"id": "4bde8971-a75a-4310-b5ec-efceeea0a91a",
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active November 6, 2024 15:21
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@carolineartz
carolineartz / cub-n-pup-puzzle-game-demo.markdown
Created December 11, 2017 15:45
Cub n Pup - puzzle game demo

Cub n Pup - puzzle game demo

How to play: Drag cub to star, Drag grid to rotate.

Also available at cubnpup.com

This is a proof-of-concept for a game. Basic art, no sound, no options, no polish. But the core game-play is there. It's more of a mobile game, focused on dragging — inspired by Threes. I'm looking to see if its any fun. Let me know!

I've always wanted to make a video game. This could be the one. My previous attempts never got past isolated demos because they were aiming for bigger ideas. They grew complex and unwieldy. So this game is designed to be simple. A game that I can actually make.

@keithwhor
keithwhor / nodal_0_11_relationships_example.js
Created May 30, 2016 22:54
Nodal 0.11 Relationships Example
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
const User = Nodal.require('app/models/user.js');
const Sport = Nodal.require('app/models/sport.js');
const Avatar = Nodal.require('app/models/avatar.js');
@arjunvenkat
arjunvenkat / rcav.md
Last active July 25, 2016 01:11
the RCAV flow

Our apps are nothing more than a collection of URLs that we decide to allow users to access:

  • mydomain.com/products
  • mydomain.com/photos/193
  • mydomain.com/signin

So remember: everything always starts with a route between a URL we want to support and a Ruby method that will be responsible for generating a response to the user's browser.

In order to support a URL in your app such as http://localhost:3000/signin, there are a lot of dots to connect!

@ndelage
ndelage / crud_step_by_step.md
Last active March 26, 2020 00:10
Step by Step CRUD Applications

Step by Step CRUD

Understand the Domain

  1. Discuss the domain (with others or yourself).
  2. Write down the user stories (features that you plan to support).
  3. Develop an understand of how each noun (model/table) will relate to each other.

Schema

  1. Draw the schema. Don't name any join tables as the combination of two other tables, find a unique noun.
  2. Double check your schema for any columns that don't follow convention (e.g. foreign keys should end in _id).
@KaraAJC
KaraAJC / items.rb
Last active August 29, 2015 14:13
trying to get challenge 1
class InventoryItem
attr_accessor :name, :inventory
def initialize(args)
@name = args[:name]
@inventory = args[:inventory]
end
def count_items(item)
#self.inventory.each do |key, value|
@col
col / Simple-JSON-API-Page-1.md
Last active July 4, 2022 12:51
Notes for creating a JSON API using Sinatra, SQL, DataMapper, Hal and hosted on Heroku.

Lightweight Ruby JSON API

Step 1 - Create a 'Hello World' Sinatra app

Create a Gemfile

source 'https://rubygems.org'

gem 'sinatra'
@ryansobol
ryansobol / symbols.md
Last active August 6, 2024 14:51
Symbols in Ruby

What's a Symbol and why is it imporant?

In Ruby, a Symbol is the most efficient way, in terms of time and memory, to represent a set of characters.

What does a Symbol look like?

Most commonly, a Symbol is a single word prefixed by a colon:

:hello
@adrianorsouza
adrianorsouza / sublime-command-line.md
Last active September 26, 2023 16:26
launch sublime text from the command line

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup