Skip to content

Instantly share code, notes, and snippets.

@ghaida
ghaida / unity3d.gitignore
Created December 30, 2015 19:14
Unity3D Git ignore folders
# =============== #
# Unity generated #
# =============== #
Temp/
Library/
# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
ExportedObj/
@ghaida
ghaida / git-cheat-sheet
Last active November 30, 2015 20:06
Git cheat sheet
________.______________
/ _____/| \__ ___/
/ \ ___| | | |
\ \_\ \ | | |
\______ /___| |____|
\/ cheat sheet
by @zoombear and @ghaidazahran
== COMMAND LINE
ls | List files in current directory
.sass-cache/*
*.DS_Store
*.css
<div class="row">
<div class="large-12 columns">
<!-- Navigation -->
<ul class="button-group">
<li><a href="#" class="button">Nav Item 1</a></li>
<li><a href="#" class="button">Nav Item 2</a></li>
<li><a href="#" class="button">Nav Item 3</a></li>
</ul>
@ghaida
ghaida / gist:5054687
Last active December 14, 2015 07:59
<!-- Navigation -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
</h1>
</li>
<!-- Header and Nav -->
<div class="row">
<div class="large-3 columns">
<h1><img src="http://placehold.it/400x100&text=Logo" /></h1>
</div>
<div class="large-9 columns">
<ul class="inline-list right">
<li><a href="#">Section 1</a></li>
@ghaida
ghaida / Youtube Embed Z-Index Fix
Created August 20, 2012 20:51
Fix embedded Youtube Video z-index
//Source: http://alteredadvice.com/youtube-iframe-videos-overlay-menu-dropdowns-z-index-problem/
$(document).ready(function() {
$("iframe").each(function(){
var ifr_source = $(this).attr('src');
var wmode = "wmode=transparent";
if(ifr_source.indexOf('?') != -1) {
var getQString = ifr_source.split('?');
var oldString = getQString[1];
var newString = getQString[0];