Skip to content

Instantly share code, notes, and snippets.

Raja rajakannan

Block or report user

Report or block rajakannan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View advanced-js-resources.md

Advanced JavaScript Learning Resources

This is a list of advanced JavaScript learning resources from people who responded to this [Tweet][13] and this [Tweet][20].

  • [You Don't Know JS][3]

  • [Frontend Masters courses by Kyle Simpson][12]

  • [@mpjme][6]'s [YouTube videos][5]

@dpawluk
dpawluk / iframe.html
Created Jan 2, 2017
Simple function to emulate v1 template switching using external hbs templates in the assets folder. Note: cdns used to acquire some common libraries.
View iframe.html
<html>
<body>
<!-- https://github.com/zendesk/zendesk_app_framework_sdk -->
<script
type="text/javascript"
src="https://assets.zendesk.com/apps/sdk/2.0/zaf_sdk.js" >
</script>
<script
type="text/javascript"
@maxogden
maxogden / 0.md
Last active Feb 24, 2020
JS hoisting by example
View 0.md

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)

View shipping-awd.php
<?php
/**
* Plugin Name: AWD Weight/State Shipping
* Plugin URI: http://www.andyswebdesign.ie/blog/free-woocommerce-weight-and-country-based-shipping-extension-plugin/
* Description: Weight and State based shipping method for Woocommerce.
* Version: 1.0.1
* Author: Andy_P (modified by Mantish to make it state based)
*/
/** Copyright 2012 andyswebdesign.ie
View gist:0f9a2583a41579878764
## Making a 32 bit version of Homestead
# Clone the settler repository to a directory
git clone https://github.com/laravel/settler.git Ubuntu32
# In that directory edit the file called "Vagrantfile" to use a ubuntu 32 box instead of the 64 bit one
change this line:
config.vm.box = "ubuntu/trusty64"
@bMinaise
bMinaise / bs3-login-form.html
Created Nov 6, 2013
Bootstrap 3 - Login Form Example From: http://bootsnipp.com
View bs3-login-form.html
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
View bs3-form-examples.html
<!--
CSS STYLES:
body { padding-top:30px; }
.form-control { margin-bottom: 10px; }
-->
<!-- User Sign-up Form -->
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 well well-sm">
@leobossmann
leobossmann / bulk import shipping rates
Created Jul 23, 2013
Bulk create/delete shipping rates in the Shopify backend. Go to Settings/Shipping and paste it into Javascript console. WARNING: This is a proof of concept, use with extreme caution and only if you know what you're doing, you will have to customize this to fit your needs. Again, just a proof of concept, worked for me, might not work for you. Ong…
View bulk import shipping rates
function make_shipping_rates(id, low, mid, high) {
$.post('/admin/price_based_shipping_rates.json', {
price_based_shipping_rate: {
country_id: id,
min_order_subtotal: "0",
max_order_subtotal: "500",
name: "DHL Premiumversand",
offsets: [],
price: low
}
@Mantish
Mantish / shipping-awd.php
Last active Dec 17, 2015
AWD Weight/CountryShipping plugin modified to make it state based instead of country based. It has some minor tweaks as well
View shipping-awd.php
<?php
/**
* Plugin Name: AWD Weight/State Shipping
* Plugin URI: http://www.andyswebdesign.ie/blog/free-woocommerce-weight-and-country-based-shipping-extension-plugin/
* Description: Weight and State based shipping method for Woocommerce.
* Version: 1.0.1
* Author: Andy_P (modified by Mantish to make it state based)
/* Copyright 2012 andyswebdesign.ie
This program is free software; you can redistribute it and/or modify
@kloon
kloon / functions.php
Last active Dec 16, 2015
WooCommerce eWAY Shared Payments Page Title
View functions.php
<?php
// Page Title, displayed as the title of the browser
add_filter( 'eway_shared_page_tite', 'woocommerce_eway_page_title' );
function woocommerce_eway_page_title() {
return __( 'My New Page Title', 'woocommerce' );
}
// Company Name, the name of the company the customer is buying from
add_filter( 'eway_shared_company_name', 'woocommerce_eway_company_name' );
You can’t perform that action at this time.