Skip to content

Instantly share code, notes, and snippets.

View wafs's full-sized avatar
🦍

wafs

🦍
  • Sydney, Australia
View GitHub Profile
@JoaquimLey
JoaquimLey / github_multiple-accounts.md
Last active April 30, 2023 22:17
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

@Yimiprod
Yimiprod / difference.js
Last active April 5, 2024 13:17
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
@brunjo
brunjo / gist:2462761
Created April 22, 2012 08:42
JavaScript - detect CSS transform 3d support and supported browser prefix
//window.onload=function(){
var supportedPrefix,
supports3d = false,
prefixes = [ "Webkit", "Moz", "ms", "O" ],
div = document.createElement("div");
if ( div.style.perspective !== undefined ) {
/*Browser supports CSS transform 3d without prefix*/
supportedPrefix = "";
supports3d = true;