Skip to content

Instantly share code, notes, and snippets.

View saracope's full-sized avatar
💾

Sara Cope saracope

💾
View GitHub Profile
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@florapdx
florapdx / meetups_indiv.js
Created February 17, 2013 10:31
This code brings in JSON data for multiple entities (in this case Pyladies groups) in a single call to a public api, and then manipulate that data after retrieval for placement in separate entity-owned divs on a web page. In this case I identified each div using an html5 data-attribute given the group_id # assigned to it by meetup.com (ie, <div …
// Make a single api call to meetup.com and grab event info for all (11) PyLadies locations. Create individual objects for each so that meetups can be added to each pyladies group's div on pyladies.com/locations page.
//helper function to discover event urls and make active links
//credit to http://www.sencha.com/forum/archive/index.php/t-12379.html for code this is based on
function create_urls(input) {
return input
.replace(/(ftp|http|https|file):\/\/[\S]+(\b|$)/gim, '"$&" target="_blank"')
.replace(/([^\/])(www[\S]+(\b|$))/gim, '"http://$2" target="_blank"');
} //end url parsing helper function
@hofmannsven
hofmannsven / README.md
Last active June 17, 2024 10:34
Git CLI Cheatsheet
@1Marc
1Marc / workshops-planning.md
Last active January 20, 2023 02:34
Workshop Planning

This gist is no longer in use.

@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active June 19, 2024 03:05
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@huyhong
huyhong / filter_by_frontmatter.rb
Last active June 28, 2018 13:31
Custom Frontmatter Filter for Jekyll
module Jekyll
module CustomFrontmatterFilter
# Returns back filtered list of posts based on custom frontmatter data types
# Usage: {{ site.posts | filter_by_frontmatter:'subcategories','design' }}
# => Returns all posts with the frontmatter 'subcategories' containing 'design'
def filter_by_frontmatter(posts, frontmatter, type)
filtered = []
for post in posts
if post.data[frontmatter]
filtered.push(post) if post.data[frontmatter].include? type
@stevekinney
stevekinney / front-end-curriculum.md
Created August 9, 2015 00:47
Front-end Curriculum Draft

Module 1

  • Semantic markup
  • HTML standards mode and quirks mode
  • HTML fundamentals
    • Classes and IDs
  • CSS fundamentals
    • Selectors
    • Resets and normalizers
    • The box model
@jessefulton
jessefulton / speaker-notes.applescript
Created August 26, 2015 17:04
Export Keynote Speaker Notes
# via http://apple.stackexchange.com/questions/136118/how-to-print-full-presenter-notes-without-slides-in-keynote
global presenterNotes
tell application "Keynote"
activate
open (choose file)
tell front document
set presenterNotes to presenter notes of every slide as text
set the clipboard to presenterNotes
do shell script "pbpaste > ~/keynote-notes.txt"
end tell
@primaryobjects
primaryobjects / index.js
Last active July 24, 2017 14:59
Dragon Hunt: An example game for Amazon Alexa running on chatskills.
var chatskills = require('chatskills');
var readlineSync = require('readline-sync');
// Define an alexa-app
var app = chatskills.app('dragonhunt');
var dragonTypes = [ 'fire', 'ice', 'undead', 'skeleton', 'golden' ];
app.launch(function(req,res) {
// Generate a random dragon.

Agenda:

  • Cromwell: Opening
    • [Gem City JS] Wed, Nov 19: Home Automation and Robots using Johnny-Five with Rob Tarr
    • [Dayton Web Developers] Wed, Nov 2: Brian Woodward - Going 'serverless' with JavaScript, APIs and Markup (JAM)
    • [Southwest Ohio Givecamp] Fri, Oct 21: 141 Volunteers THANK YOU!!!
  • Introduction to [Hacktoberfest]
    • What does it mean to contribute while at DCC?
    • [Progress Checker] Examples: [cromwellryan progress], [tarr progress]
    • Share your progress at [Dayton Web Dev Slack]
  • [Sign up]