Skip to content

Instantly share code, notes, and snippets.

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

Muhammad Obaid mohammadobaid1

🏠
Working from home
View GitHub Profile
<?php if($search_layout != 'compact' && !$widget): ?>
<div id="hideelement" class="columns large-2 medium-4 small-6 search-bed">
<label><?php _e('Area', 'theme_front'); ?></label>
<select class="select2" name="area" data-minimum-results-for-search="Infinity" tabindex="5">
<option value=""><?php _e('Any', 'theme_front'); ?></option>
<?php
$meta = $meta_area;
$max = floor(max($meta));
for($i=1; $i<=$max; $i++):
@mohammadobaid1
mohammadobaid1 / index.php
Created September 15, 2018 19:53
jquery dropdown
<?php
function property_search_form($search_layout, $widget=false) {
// Prepare form attribute
$search_pages = get_pages(array(
'meta_key' => '_wp_page_template',
'meta_value' => 'template-property-search.php'
));
if($search_pages) {
$search_pages = array_values($search_pages);
@mohammadobaid1
mohammadobaid1 / angular.ts
Created July 27, 2018 10:56
Angular form code snippet
import { Component, OnInit } from '@angular/core';
import {FormBuilder, FormGroup} from '@angular/forms';
import {AtValidators} from '@atomic/core';
@Component({
selector: 'app-clearenceform',
templateUrl: './clearenceform.component.html',
styleUrls: ['./clearenceform.component.scss']
})
export class ClearenceformComponent implements OnInit {
@mohammadobaid1
mohammadobaid1 / readme.txt
Created July 23, 2018 12:51
ERC-20 Token
erc-20 token is an standard for writing smart contract on ethereum . It must meet following conditions
## Mandatory
- totalSupply
- balanceOf
- transfer
- transferFrom
- approve
- allowance
@mohammadobaid1
mohammadobaid1 / all.txt
Created May 27, 2018 19:57 — forked from jhaddix/all.txt
all wordlists for every dns enumeration tool... ever.
@
*
0
00
0-0
000
0000
00000
000000
var express = require('express');
const mysql =require('mysql');
var bodyParser = require('body-parser');
const connections = mysql.createPool({
connectionLimit : 100,
host: 'localhost',
user: 'root',
password: '123456',
database: 'mydb'
});
@mohammadobaid1
mohammadobaid1 / list.log
Created February 24, 2018 19:01 — forked from nicolasembleton/list.log
List of most past CryptoCurrency ICO whitepapers PDF (from January 16th 2018), probably incomplete
https://www.gatcoin.io/wp-content/uploads/2017/08/GATCOIN-Whitepaper_ENG-1.pdf
https://appcoins.io/pdf/appcoins_whitepaper.pdf
https://pareto.network/download/Pareto-Technical-White-Paper.pdf
http://betbox.ai/BetBoxBizWhitepaper.pdf
https://www.aidcoin.co/assets/documents/whitepaper.pdf
https://irp-cdn.multiscreensite.com/ee070c4a/files/uploaded/Whitepaper%20AlchemyByte%20%26%20SLHashByte%20v1.6.pdf
http://goldminecoin.io/wp-content/uploads/2017/11/GoldMineCoin_ENG.pdf
https://www.pecun.io/wp-content/uploads/2017/10/Pecunio_White_Paper_011.pdf
http://ico.cryptoibet.com/assets1/pdf/whitepaper-1.pdf
https://www.bitnettoken.org/documents/BNETWhitePaper.pdf
@mohammadobaid1
mohammadobaid1 / index-gen.js
Created February 12, 2018 07:21
index-gen.js
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
/******/ this["webpackHotUpdate"] =
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
/******/ hotAddUpdateChunk(chunkId, moreModules);
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
/******/ }
/******/
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
/******/ var head = document.getElementsByTagName("head")[0];
@mohammadobaid1
mohammadobaid1 / index-gen.js
Created February 10, 2018 08:57
index-gen.js
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
/******/ this["webpackHotUpdate"] =
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
/******/ hotAddUpdateChunk(chunkId, moreModules);
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
/******/ }
/******/
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
/******/ var head = document.getElementsByTagName("head")[0];
@mohammadobaid1
mohammadobaid1 / index-gen.js
Created February 10, 2018 08:23
index-gen.js
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
/******/ this["webpackHotUpdate"] =
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
/******/ hotAddUpdateChunk(chunkId, moreModules);
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
/******/ }
/******/
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
/******/ var head = document.getElementsByTagName("head")[0];