Skip to content

Instantly share code, notes, and snippets.

View saracope's full-sized avatar
💾

Sara Cope saracope

💾
View GitHub Profile
@mheap
mheap / workflow.yaml
Created March 9, 2023 12:56
Run steps with access to secrets on PRs from forks with GitHub Actions
name: Demo
on:
pull_request_target:
types: [opened, synchronize, labeled]
jobs:
demo:
runs-on: ubuntu-latest
steps:
- name: Check access
if: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' && !contains(github.event.*.labels.*.name, 'ci:run-tests') }}
@jayshenk
jayshenk / flexbox_resources.md
Last active December 4, 2019 12:35
A collection of resources for learning Flexbox

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]
@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.
@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
@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
@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
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active May 2, 2024 08:38
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
@1Marc
1Marc / workshops-planning.md
Last active January 20, 2023 02:34
Workshop Planning

This gist is no longer in use.

@hofmannsven
hofmannsven / README.md
Last active May 3, 2024 15:30
Git CLI Cheatsheet