Skip to content

Instantly share code, notes, and snippets.

@nareshdevineni
nareshdevineni / AppleImages.html
Created November 29, 2016 07:30 — forked from js62789/AppleImages.html
A list of apple touch icons and apple touch startup images
<!-- For iPad with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152-precomposed.png">
<!-- For iPad with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120-precomposed.png">
<!-- For iPhone with high-resolution Retina display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad on iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76-precomposed.png">
@nareshdevineni
nareshdevineni / wpcf7-type-1.html
Created December 26, 2016 12:30
Contact form 7 - Type -1 Form
<div class="wpcf7-type-1">
<div class="one-of-two border-to-the-right">
<label class="accessibility" for="your-name"> Your Name (required)</label>
[text* your-name placeholder "Name"]
</div>
<div class="one-of-two">
<label class="accessibility" for="your-email"> Your Email (required)</label>
[email* your-email placeholder "email"]
</div>
@nareshdevineni
nareshdevineni / sanitize_checkbox.php
Created January 3, 2017 03:55 — forked from saas786/sanitize_checkbox.php
Sanitization of customizer controls
/*
* Sanitize Checkbox
*/
// Source: https://github.com/FlagshipWP/flagship-library/blob/develop/customizer/classes/customizer-base.php
/**
* Sanitize a checkbox to only allow 0 or 1
*
* @since 1.2.0
* @access public
var logosListWidget = logosListWidget || {};
logosListWidget.render = function( id, JSON ){
// Model (Data for individual logo)
var Logo = Backbone.Model.extend( {
defaults: {
'url' : '',
'name': ''
}
} );
<div class="flex-container">
<div class="flex-item card">
<div>20$</div>
<h2>Beginner</h2>
<p>Ideal for Individuals and small teams</p>
</div>
<div class="flex-item card">
<div>40$</div>
<h2>Advanced</h2>
<p>Ideal for start-ups with amazing ideas</p>
<?php
/**
* Single Product tabs
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product/tabs/tabs.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
@nareshdevineni
nareshdevineni / personal-variables.js
Last active June 19, 2022 10:50
Exercise for getting good with Javascript Variables
//First name and last name are always a string
let firstName = "Naresh";
let lastName = "Devineni";
//It is recommended to store age as a number because you might end up incrementing it automatically every year
let age = 34;
// Names are always strings
let father = "D. Narsaiah";
let mother = "D. Laxmi";
<!DOCTYPE html>
<html lang="en">
<head>
...
</head>
<body>
<p>Some HTML Content</p>
<script>
//Javascript code goes here
alert("Javascript is successfully linked!");
!function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=2)}([function(e,t){e.exports=jQuery},function(e,t,i){"use strict";var n,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":o(window))&&(n=window)}e.exports=n},function(e,t,i){e.exports=i(3)},function(e,t,i){"use strict";var n=i(4),o=function(e){return e&&e.__esModule?e:{def