Skip to content

Instantly share code, notes, and snippets.

View audreyfeldroy's full-sized avatar
💕

Audrey M. Roy Greenfeld audreyfeldroy

💕
View GitHub Profile
@audreyfeldroy
audreyfeldroy / gist:9376056
Created March 5, 2014 20:36
Getting around valgrind multiple -arch flags error
./configure --enable-only64bit
make
sudo make install
@audreyfeldroy
audreyfeldroy / gist:7760709
Created December 2, 2013 23:05
How do Python programmers make Hanukkah latkes?
random.shuffle(potatoes) + lots_of_oil
@audreyfeldroy
audreyfeldroy / gist:7760444
Last active December 30, 2015 02:09
What Christmas items can be used as context managers?
>>> with boughs_of_glory:
... deck(halls)
Falalalalalalalala
@audreyfeldroy
audreyfeldroy / gist:7760325
Last active December 30, 2015 02:08
Santa's most useful Python code snippet
[person for person in world_population
if is_nice(person) and is_nice(person)]
@audreyfeldroy
audreyfeldroy / gist:6476750
Created September 7, 2013 15:55
os.makedirs unicode error
python -m unittest tests.test_main.TestCookiecutterRepoArg
DEBUG: Making sure path exists: /Users/audreyr/.cookiecutters/
DEBUG: repo_dir is /Users/audreyr/.cookiecutters/cookiecutter-pypackage
Cloning into 'cookiecutter-pypackage'...
remote: Counting objects: 241, done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 241 (delta 116), reused 206 (delta 98)
Receiving objects: 100% (241/241), 37.90 KiB, done.
Resolving deltas: 100% (116/116), done.
DEBUG: context_file is /Users/audreyr/.cookiecutters/cookiecutter-pypackage/cookiecutter.json
@audreyfeldroy
audreyfeldroy / js-release-checklist.md
Last active December 21, 2015 11:48
My JS Package Release Checklist

The first time:

  • If using jQuery, cookiecutter https://github.com/audreyr/cookiecutter-jquery.git to create it.
  • If not using jQuery, cookiecutter https://github.com/audreyr/cookiecutter-component.git to create it.
  • Put the code in a repo
  • Create a package.json
  • Create a component.json
  • Add it to https://github.com/component/component/wiki/

For each new release:

@audreyfeldroy
audreyfeldroy / index.html
Last active December 20, 2015 16:18
Thicker repo sparkline producing a harsher effect.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Thicker repo sparkline producing a harsher effect." />
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<svg class="sparkline" width="104" height="30"></svg>
@audreyfeldroy
audreyfeldroy / index.html
Last active December 20, 2015 15:08
rotatingnav in action
<!DOCTYPE html>
<html lang="en">
<head>
<title>Rotating Nav Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="rotatingnav.css" rel="stylesheet">
</head>
<body>
<div class="rotatingnav-container">
@audreyfeldroy
audreyfeldroy / index.html
Last active December 20, 2015 15:09
jsbin #12
<!DOCTYPE html>
<html>
<head>
<link href="jsbin.ovesux.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="jsbin.ovesux.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
@audreyfeldroy
audreyfeldroy / index.html
Last active December 20, 2015 15:09
jsbin #11
<!DOCTYPE html>
<html>
<head>
<link href="jsbin.ovesux.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="jsbin.ovesux.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>