Skip to content

Instantly share code, notes, and snippets.

View eglassman's full-sized avatar
💭
I may be slow to respond.

Elena Glassman eglassman

💭
I may be slow to respond.
View GitHub Profile
@stevekrouse
stevekrouse / main.html
Last active November 23, 2018 14:48
BlinkNote New Tab Chrome Extension - fastest way to take a note that'll stick around
<html>
<head>
</head>
<body>
<h1 id="error" style="display:none; color: red">Too many characters to save. Please delete some.</h1>
<div id="c" contenteditable style="min-height:300px;outline:none;"></div>
</body>
<script src="main.js"></script>
</html>
@jonjack
jonjack / add-update-refresh-github-access-token-on-mac.md
Last active May 10, 2024 18:47
Adding & Updating GitHub Access Token on Mac

Using an Access Token for the first time

Follow the instructions on Github to Create an Access Token in Github

Configure Git to use the osxkeychain

By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.

You can tell Git you want to store credentials in the osxkeychain by running the following:-

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
THE WHITE HOUSE Office of the Press Secretary
For Immediate Release January 20, 2017
EXECUTIVE ORDER
MINIMIZING THE ECONOMIC BURDEN OF THE PATIENT PROTECTION AND AFFORDABLE CARE ACT PENDING REPEAL
By the authority vested in me as President by the Constitution and the laws of the United States of America, it is hereby ordered as follows:
Section 1. It is the policy of my Administration to seek the prompt repeal of the Patient Protection and Affordable Care Act (Public Law 111-148), as amended (the "Act'). In the meantime, pending such repeal, it is imperative for the executive branch to ensure that the law is being efficiently implemented, take all actions consistent with law to minimize the unwarranted economic and regulatory burdens of the Act, and prepare to afford the States more flexibility and control to create a more free and open healthcare market.
Sec. 2. To the maximum extent permitted by law, the Secretary of Health and Human Services (Secretary) and the heads of all other executive department
@alltom
alltom / twoman.eve
Last active October 19, 2016 07:53
# [Two-Man Rule](https://en.wikipedia.org/wiki/Two-man_rule)
## Model
Create two locks.
```
commit @model
[#lock name: "Lock 1", locked: true]
[#lock name: "Lock 2", locked: true]
```
Unlock locks when their key is turned.
# -*- coding: utf-8 -*-
'''
Created on May 27, 2016
@author: abgupta
'''
from selenium.webdriver import Firefox
from selenium.webdriver.support.ui import WebDriverWait
import time, sys, traceback
from HTMLParser import HTMLParser
@drzax
drzax / .block
Last active December 6, 2023 16:28
Narrative Charts
license: mit
scrolling: true
height: 300
@davidbau
davidbau / googlesender.py
Last active February 25, 2023 03:25
Python 2 script for generating a JavaScript/jQuery function for submitting to a Google Form
# Google form submit-maker.
#
# Usage: python googlesender.py https://docs.google.com/forms/d/e/1.../viewform
#
# Point this python file at a live Google forms URL, and it will generate
# code for a Javascript function that submits to that form cross-domain.
#
# Notes:
# - The form should be created with "short answer text" questions.
# - The viewform URL to scrape is the link shared when the form is sent.
@natematias
natematias / 365grateful_on_twitter.py
Last active August 29, 2015 14:04
Analyze 365Grateful on Twitter
#adapted from minus_context
import nltk
import feedparser
import random
import twitter
import yaml
import string
import re
from urlparse import urlparse