Skip to content

Instantly share code, notes, and snippets.

Avatar

kensley blachawk

View GitHub Profile
@heardk
heardk / OneNote-to-MD.md
Last active Apr 2, 2021
Convert notes from OneNote into Markdown
View OneNote-to-MD.md

Converting One Note to Markdown

This is an example of how to convert notes from OneNote into Markdown to use in other, less annoying Note applications. I am using PowerShell on Windows here, but other shell/scripting environments would work as well. If you want separate .md files, you'll need to export your OneNote pages separately. Exporting a section, or a selection of pages creates a single .docx file.

  • Download and install Pandoc
  • Export each of your note pages to a .docx (Word) format using OneNote export from the File menu
  • Gather all of these .docx files into a directory
  • Open directory in File Explorer
  • Open Powershell from the File Explorer using File -> Open Windows Powersell
  • Run the following command:
@lmcneel
lmcneel / remove-node-modules.md
Last active Apr 9, 2021
How to remove node_modules after they have been added to a repo
View remove-node-modules.md

How to remove node_modules

  1. Create a .gitignore file in the git repository if it does not contain one

touch .gitignore

  1. Open up the .gitignore and add the following line to the file

**/node_modules

@indiesquidge
indiesquidge / objects-over-classes.md
Last active Dec 5, 2020
We are better off avoiding ES6 classes in JavaScript when possible
View objects-over-classes.md

Plain JavaScript objects are better than classes when they can be used, and many popular modern frameworks have adopted their use.

Consider that in React a component can be created as either a class or as an object.

// using a class
class Welcome extends React.Component {
  render() {
    <h1>Hello, {this.props.name}</h1>
@kittenlane
kittenlane / 1-remove-woocommerce-tabs.php
Last active Mar 30, 2021
Remove tabs but keep product description in WooCommerce
View 1-remove-woocommerce-tabs.php
//* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/
// Location: add to functions.php
// Output: removes woocommerce tabs
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
@planetoftheweb
planetoftheweb / MagicWrapUL_LI_IMG_emmet.html
Created Feb 11, 2014
Emmet shortcut to quickly create a list of images linked to high-res versions. Watch a video at http://youtube.com/planetoftheweb
View MagicWrapUL_LI_IMG_emmet.html
ul>li*>a[href="images/$#.jpg"]>img[src="images/$#_tn.jpg" alt="Photo of $#"]
@rxaviers
rxaviers / gist:7360908
Last active Apr 18, 2021
Complete list of github markdown emoji markup
View gist:7360908

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: