Skip to content

Instantly share code, notes, and snippets.

View ishaadX's full-sized avatar
🎯
Focusing

ishtiaque-shaad ishaadX

🎯
Focusing
View GitHub Profile
@ishaadX
ishaadX / Node JS start.txt
Last active August 29, 2015 14:27
Node JS এর ফাইল সিস্টেম ঃ read, write, rename, delete
//রিড ফাইল
var fs = require('fs'); // Node module er file system ta k include korese
fs.readFile('/Users/Shaad/Desktop/Node/node.rtf', 'utf8', function(err, data){ //fs.readFile diye file read option initate korese, then convert it into utf8 format
if (err) {
console.log(err); //if kono error thake tahole console a err msg show korbe
}
console.log(data) // otherwise data read kore file content show korbe
});
// ফাইল রাইট করা
@ishaadX
ishaadX / node.md
Last active August 29, 2015 14:27 — forked from mhasan3/node.md

Assert:

এই মডিউল টি অ্যাপ্লিকেশনের ইউনিট টেস্ট লেখার জন্য ইউজ করা হয়। এটিকে অ্যাকসেস করা হয়:

require('assert')

Buffer:

@ishaadX
ishaadX / index.html
Last active August 29, 2015 14:27 — forked from aaronksaunders/index.html
PARSE.COM AND ANGULARJS FOR EASY SETUP OF USER AUTHENTICATION - http://popdevelop.com/2013/11/parse-com-and-angularjs-for-easy-setup-of-user-authentication/
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="http://www.parsecdn.com/js/parse-1.2.12.min.js"></script>
<meta charset=utf-8 />
<title>Example</title>
</head>
<body ng-app="AuthApp">
<div ng-hide="currentUser">
@ishaadX
ishaadX / gist:78c039bd4deeb16dcf38
Last active May 22, 2016 08:22 — forked from probaldhar/gist:82eff5fdc7b6035a92e5
How to make bootable Mac OS X
Follow these steps that in the link
http://www.macworld.co.uk/how-to/mac/make-bootable-mac-os-x-1010-yosemite-install-drive-3575875/
@ishaadX
ishaadX / index.html
Last active September 20, 2015 08:33 — forked from finnp/index.html
Simple Todo-App using AngularJS (http://angularjs.org/) and Parse (https://parse.com/). Done at the HelsinkiJS #PeerProgramming. http://helsinkijs.org/
<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.6/angular.min.js"></script>
<script src="http://www.parsecdn.com/js/parse-1.2.7.min.js"></script>
<script src="todo.js"></script>
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<div class="container" ng-controller="Todo">
<?php
/*
Register Fonts
*/
function studio_fonts_url() {
$font_url = '';
/*
Translators: If there are characters in your language that are not supported
by chosen font(s), translate this to 'off'. Do not translate into your own language.
@ishaadX
ishaadX / WooCommerce Add to cart without login
Last active January 1, 2019 06:59
Woocommerce Product add to cart while logged out
Copy and paste this code on functions.php file in wordpress theme....
add_action( 'woocommerce_add_to_cart' , 'repair_woocommerce_session_add_to_cart');
function repair_woocommerce_session_add_to_cart( ){
if ( defined( 'DOING_AJAX' ) ) {
wc_setcookie( 'woocommerce_items_in_cart', 1 );
do_action( 'woocommerce_set_cart_cookies', true );
}
}
@ishaadX
ishaadX / Breadcrumb
Last active June 7, 2016 05:12
Simple & Customize Breadcrumb for wordpress from WooCommerce for general purpose...
*********Create a new File name class-breadcrumb.php and paste this code.....*********
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Turbowp_Breadcrumb {
private $crumbs = array();
{
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme",
"font_size": 14,
"tab_size": 2,
"highlight_line": true,
`class Custom_Pages_Widgets extends WP_Widget{
public function __construct(){
$widget_ops = array(
'description' => __( "A list of your site’s Pages." )
);
parent::__construct( 'custom_widget_pages', __( 'Widget Pages' ), $widget_ops );
}
public function widget( $args, $instance ){
extract($args);
$select = empty( $instance['select'] ) ? '' : $instance['select'];