Skip to content

Instantly share code, notes, and snippets.

View taylor-jones's full-sized avatar

Taylor Jones taylor-jones

View GitHub Profile
@taylor-jones
taylor-jones / hamburger-svg-snippet
Created March 20, 2016 22:54
hamburger menu svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M2 6h20v3H2zm0 5h20v3H2zm0 5h20v3H2z" />
</svg>
@taylor-jones
taylor-jones / recursive_change_ext
Last active October 16, 2016 17:09
Recursively change file extension w/ cmd
REM :: USING THE COMMAND PROMPT:
REM :: Recursively change file extensions in a directory.
REM :: The example below changes all .css files to .scss files:
for /R %x in (*.css) do ren "%x" *.scss
@taylor-jones
taylor-jones / bulk_change_filenames
Last active October 16, 2016 17:10
bulk change filenames in folder
REM :: USING THE COMMAND PROMPT:
REM :: Snippet to change all the filenames in a directory (non-recusive)
REM :: The example below prepends all filenames with an underscore:
for %a in (*.*) do ren "%a" "_%a"
@taylor-jones
taylor-jones / md-colors.scss
Last active April 13, 2016 12:15
md-colors.scss
/* --------------------------------------------------
Globally available color variables using
Google's Material Design color palette
https://www.google.com/design/spec/style/color.html
--------------------------------------------------
All color variable names are in the following format:
$md-{color}-[a][level]
Atom Sync-Settings
// 2nd version of Atom settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@taylor-jones
taylor-jones / capslove2.json
Last active September 12, 2018 19:11
Capslove Karabiner Config
{
"title": "Capslove V2",
"rules": [{
"description": "Capslove Base Home/End",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"mandatory": [
@taylor-jones
taylor-jones / HtmlComment.jsx
Last active February 19, 2019 19:22 — forked from alexeychikk/ReactComment.jsx
Simple React HTML comment
/* eslint-disable react/no-find-dom-node */
import React, { PureComponent } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
class HtmlComment extends PureComponent {
componentDidMount() {
const node = ReactDOM.findDOMNode(this);
ReactDOM.unmountComponentAtNode(node);
@taylor-jones
taylor-jones / vs_curl.py
Created September 22, 2019 19:47
Download the latest versions of all installed VS Code extensions w/ cURL
"""
Download the latest versions of all installed VSCode extensions with cURL.
TODO: Add option to automatically install all the downloaded extensions.
TODO: Add option to provide any list of extensions, not just the installed ones.
TODO: Update to allow for specifying extension version (but default to latest version).
TODO: Update to check for directory existence (and make one if it doesn't exist).
"""
import os