Skip to content

Instantly share code, notes, and snippets.

View primitiveshaun's full-sized avatar

Shaun Knowles primitiveshaun

View GitHub Profile
@tkrotoff
tkrotoff / FrontendFrameworksPopularity.md
Last active August 11, 2026 16:45
Front-end frameworks popularity (React, Vue, Angular and Svelte)

Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.

Similar analysis:

Personal conclusion

After all those years maintaining this data (since 2018): React is still much more popular and continue to grow faster than alternatives; Vue dates back from 2014 and Svelte from 2016, they should have overthrown React by now.

@jonjack
jonjack / add-update-refresh-github-access-token-on-mac.md
Last active August 8, 2026 17:26
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:-

@solid-pixel
solid-pixel / page.php
Last active January 25, 2021 16:03
Display WordPress Custom Posts with Bootstrap 4 Cards
<div class="container">
<div class="row justify-content-between">
<?php $the_query=new WP_Query( array( 'post_type'=> 'project' ) ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<?php $featured_img_url=get_the_post_thumbnail_url(get_the_ID(), 'full'); ?>
<div class="col-lg-4">
<div class="card mb-2">
<img class="card-img-top" src="<?php echo $featured_img_url ?>" alt="">
<div class="card-body">
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active August 24, 2026 03:34
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@0xjac
0xjac / private_fork.md
Last active August 23, 2026 11:29
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@amboutwe
amboutwe / yoast_seo_sitemap_add_custom_type.php
Last active September 10, 2025 15:48
Filters and example code for Yoast SEO sitemaps
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Create a Yoast SEO sitemap for a custom post type
* Credit: Team Yoast
* Last Tested: Unknown
* Documentation: https://developer.yoast.com/features/xml-sitemaps/api/#add-a-custom-post-type
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* HOW TO USE
* Replace TYPE with your custom type
@jkomyno
jkomyno / getGlobalPackages.sh
Created September 28, 2016 10:54
Get every globally install npm package
npm list -g --depth 0
@FrancesCoronel
FrancesCoronel / sampleREADME.md
Last active August 7, 2026 02:16
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@PurpleBooth
PurpleBooth / README-Template.md
Last active August 16, 2026 01:24
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jasonhinkle
jasonhinkle / ajax.js
Last active February 20, 2023 17:42
jQuery AJAX Snippet
$.ajax({
url: 'api/url',
method: 'POST',
data: {var:'val'},
// data: JSON.stringify({var:'val'}), // send data in the request body
// contentType: "application/json; charset=utf-8", // if sending in the request body
dataType: 'json'
}).done(function(data, textStatus, jqXHR) {
// because dataType is json 'data' is guaranteed to be an object
console.log('done');