Skip to content

Instantly share code, notes, and snippets.

View CodeDotJS's full-sized avatar

Rishi Giri CodeDotJS

View GitHub Profile

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
'use strict';
const jsdom = require('jsdom');
jsdom.env({
url: 'http://fast.com/',
scripts: ['http://code.jquery.com/jquery.js'],
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
strictSSL: false,
features: {
FetchExternalResources: ['script'],
function wooc_extra_register_fields() {
?>
<p class="form-row form-row-first">
<label for="reg_billing_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="billing_first_name" id="reg_billing_first_name" value="<?php if ( ! empty( $_POST['billing_first_name'] ) ) esc_attr_e( $_POST['billing_first_name'] ); ?>" />
</p>
<p class="form-row form-row-last">
<label for="reg_billing_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label>
<input type="text" class="input-text" name="billing_last_name" id="reg_billing_last_name" value="<?php if ( ! empty( $_POST['billing_last_name'] ) ) esc_attr_e( $_POST['billing_last_name'] ); ?>" />
var browser = function() {
if (browser.prototype._cachedResult)
return browser.prototype._cachedResult;
var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
return (browser.prototype._cachedResult =
isSafari ? 'Safari' :
'');
};

Keybase proof

I hereby claim:

  • I am CodeDotJS on github.
  • I am rishigiri (https://keybase.io/rishigiri) on keybase.
  • I have a public key whose fingerprint is FB0A B6A6 8777 3A1E 2F83 05EB 332F 38BC 7849 158A

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Order Progress</title>
<style type = "text/css">
.customer {
font-weight: bold;
{
"always_show_minimap_viewport": true,
"bold_folder_labels": false,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"font_options":
[
"gray_antialias"
],
"ignored_packages":
@CodeDotJS
CodeDotJS / Random Commander.markdown
Created January 13, 2016 09:32
Random Commander
@CodeDotJS
CodeDotJS / Animated Terminal Session.markdown
Created January 8, 2016 21:19
Animated Terminal Session