Skip to content

Instantly share code, notes, and snippets.

View HelloAlberuni's full-sized avatar
🏠
Working from home

Alberuni Azad HelloAlberuni

🏠
Working from home
View GitHub Profile
@HelloAlberuni
HelloAlberuni / App.js
Created August 19, 2019 14:00
React: List and Event, edit, keypress event practice
import React, { Component } from 'react'
import './App.css';
import Books from './Books/Books';
class App extends Component{
state = {
books: [
{
id: 1,
name: 'Rich dad',
@HelloAlberuni
HelloAlberuni / App.js
Created August 19, 2019 12:51
React list and event practice
import React, { Component } from 'react'
import './App.css';
import Books from './Books/Books';
class App extends Component{
state = {
books: [
{
id: 1,
name: 'Rich dad',
@HelloAlberuni
HelloAlberuni / registered sidebar
Created July 29, 2019 08:57
get registered sidebar list
function flone_get_sidebars(){
$sidebars = array();
foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ){
$sidebars[$sidebar['id']] = ucwords( $sidebar['name'] );
}
return $sidebars;
}
@HelloAlberuni
HelloAlberuni / CPT Metabox.php
Last active July 26, 2019 15:11
CMB2 Fields Example
add_action( 'cmb2_admin_init', 'prefixx_register_cpt_metabox' );
function prefixx_register_cpt_metabox() {
/**
* Metabox to be displayed on a single page ID
*/
$cmb_about_page = new_cmb2_box( array(
'id' => 'prefixx_about_metabox',
'title' => esc_html__( 'About Page Metabox', 'prefixx' ),
'object_types' => array( 'page' ), // Post type
'context' => 'normal',
@HelloAlberuni
HelloAlberuni / index.html
Created July 25, 2019 15:45
Custom JQuery Tab
<ul class="tab_menu">
<li><a class="active" href="#tab_cotnent_1">Clothing</a></li>
<li><a class="" href="#tab_content_2">Fashin</a></li>
</ul>
<div class="tab_cotnent" id="tab_cotnent_1">
Clothing: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptas magni, laborum ipsa. Magnam natus incidunt explicabo excepturi, deleniti illum atque non quos nisi quibusdam esse vel dicta, quas nam eveniet.
</div>
<div class="tab_cotnent" id="tab_content_2">
{
"timestamp": 1561218720,
"upgrade_notice": {
"version": "2.0.0",
"message": "",
"update_link": ""
},
"library": {
"types_data": {
"block": {
{
"themes": [
"astra",
"oceanwp",
"twentytwelve"
],
"plugins": [
"woocommerce",
"elementor",
"happy-elementor-addons",
#include<windows.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <stdlib.h>
/*
* GLUT Shapes Demo
*
* Written by Nigel Stewart November 2003
*
* This program is test harness for the sphere, cone
* and torus shapes in GLUT.
*
* Spinning wireframe and smooth shaded shapes are
* displayed until the ESC or q key is pressed. The
create table department(
dept_name varchar(20) not null,
building varchar(20) not null,
budget numeric(8,2) not null,
primary key (dept_name)
);
create table instructor(
id char(5),
name varchar(20) not null,