Skip to content

Instantly share code, notes, and snippets.

View icron's full-sized avatar

Alexander L. icron

  • Cyprus
View GitHub Profile
@icron
icron / foo.log
Last active August 29, 2015 14:12 — forked from ibeex/foo.log
A warning occurred (42 apples)
An error occurred
@icron
icron / ajax.js
Last active August 29, 2015 14:16 — forked from xeoncross/ajax.js
/**
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object
*
* @param string url
* @param object callback
* @param mixed data
* @param null x
*/
function ajax(url, callback, data, x) {
try {
@icron
icron / main.js
Last active August 29, 2015 14:22 — forked from Prevole/main.js
// JST and HAML Assets is used for the templating pre-compilation
Backbone.Marionette.Renderer.render = function(template, data) {
if (!JST[template]) {
throw "Template '" + template + "' not found!";
}
return JST[template](data);
};
window.MyApp = new Backbone.Marionette.Application();
@icron
icron / JXA Resources.md
Created March 16, 2018 07:09 — forked from JMichaelTX/JXA Resources.md
JavaScript for Automation (JXA) Resources

JXA Resources

Revised: 2017-06-24 11:21 PM CT

NOTICE:

This page has been transferred to JXA Resources in the JXA Wiki of group.io. All further updates will be made there, and this GitHub Gist page will eventually be removed.

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

@icron
icron / work-with-multiple-github-accounts.md
Created April 22, 2023 06:05 — forked from rahularity/work-with-multiple-github-accounts.md
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent