Skip to content

Instantly share code, notes, and snippets.

View Youhan's full-sized avatar
😊

Alireza Jahandideh Youhan

😊
View GitHub Profile
<!-- Logo -->
<div id="logo-wrapper">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo ot_get_option('site_logo') ?>" alt="logo"></a>
</div>
<!-- /Logo -->
<?php if (ot_get_option('site_logo') != ''): ?>
<!-- Logo -->
<div id="logo-wrapper">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo ot_get_option('site_logo') ?>" alt="logo"></a>
</div>
<!-- /Logo -->
<?php endif; ?>
<div class="col-md-9">
<div class="row mb-medium">
<div class="col-md-6">
<a href="Fashion Port.html">
<div class="owl-videobg autoplay dark-overlay" data-src="assets/video/Home 2/Home 222.mp4"></div>
<div class="caption cap-bordered cap-compact cap-bottom cap-left">
<h2 class="cap-title allcaps">
Fashion<br/>Portfolio
<?php if ( is_front_page() ):?>
<div class="my-custom-logo">
<a href="http://www.future-archs.com/" title="Future Arch's">
<img src="http://www.future-archs.com/FutureL6.png" alt="Future Arch's">
</a>
</div>
<?php endif;?>
@Youhan
Youhan / 0_reuse_code.js
Created April 25, 2016 10:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Youhan
Youhan / composer.json
Created May 27, 2016 03:31 — forked from 256cats/composer.json
Web scraping ReactPHP Curl Proxies, curl multi example, scraping news ycombinator, explanation here: http://256cats.com/fast-scraping-with-reactphp-curl-proxies/
{
"require": {
"khr/react-curl": "~2.0",
"sunra/php-simple-html-dom-parser": "~1.5"
}
}
@Youhan
Youhan / gist:dab8f22addb2ae0dbe90c4e2c5442112
Created April 26, 2017 07:33
Toranj Custom js / Masterslider fraction
var msSlider={
//This is the function that controlls all masterslider instances or atleast it tries to do!
init:function($target){
var self=this;
//Select the target which can be passed to the function or auto selected from DOM
var $elem=$target || $('.tj-ms-slider');
@Youhan
Youhan / functions.php
Last active May 24, 2017 09:03
Update vc_icon and add your own to the list
// 1- update map for vc_icons
add_action( 'vc_after_init', 'hubble_vc_icon_settings' );
function hubble_vc_icon_settings() {
if ( ! WPBMap::exists('vc_icon') )
return false;
$vc_icon_map = WPBMap::getShortCode('vc_icon');
//$params = $vc_icon_map['params'];
@Youhan
Youhan / functions.php
Created February 21, 2018 10:05
override portfolio nav - toranj wp
/**
* ----------------------------------------------------------------------------------------
* Override portfolio nav
* ----------------------------------------------------------------------------------------
*/
function owlab_portfolio_single_nav() {
$next = get_next_post();
$prev = get_previous_post();
@Youhan
Youhan / iterm2.md
Created August 4, 2019 01:07 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)