Skip to content

Instantly share code, notes, and snippets.

View ayhansipahi's full-sized avatar
👾
Coding...

Ayhan Sipahi ayhansipahi

👾
Coding...
View GitHub Profile
@ayhansipahi
ayhansipahi / comment.sublime-snippet
Created November 27, 2012 23:13
Fortran 77 Snippets for Sublime Text 2
<!-- comment.sublime-snippet -->
<snippet>
<content><![CDATA[
C -----------------------------------
C $1
C -----------------------------------
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>comment</tabTrigger>
@ayhansipahi
ayhansipahi / reset.css
Last active December 12, 2015 01:59
html5doctor.com Reset Stylesheet
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
#livehelp {
font-weight: bold;
-webkit-animation: livehelp 2s ease-in-out infinite; /* Safari 4+ */
-moz-animation: livehelp 2s ease-in-out infinite; /* Fx 5+ */
-o-animation: livehelp 2s ease-in-out infinite; /* Opera 12+ */
section {
padding-top: 60px;
}
.subnav {
margin-bottom: 60px;
width: 100%;
height: 36px;
background-color: #eeeeee; /* Old browsers */
background-repeat: repeat-x; /* Repeat the gradient */
@ayhansipahi
ayhansipahi / Viewport Resizer.js
Created March 21, 2013 13:31
Viewport Resizer https
/*! Viewport Resizer v1.1.3 | http://lab.maltewassermann.com/viewport-resizer/ Copyright (c) 2012 Created by Malte Wassermann */
(function(q,C,J){var U=C.createElement("script"),V=C.getElementsByTagName("script")[0];U.src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";V.parentNode.insertBefore(U,V);C.close();var W=function(a){q.jQuery&&[jQuery.fn.jquery,"1"].sort()[1]===jQuery.fn.jquery?a(jQuery):q.setTimeout(function(){W(a)},100)};W(function(a){function x(b){b=typeof b==="undefined"?a("a.active",p):a(b);var e=b.attr("data-viewport").toDimension();a("a.active",y).removeClass("active").end(b.addClass("active"));
X(e)}function z(b,e){var d=b?b:a("a.active",y),g=b?d.attr("data-viewport").toDimension():{width:D,height:K},k=e=="swap"?{width:g.height,height:g.width}:{width:g.width,height:g.height},h=k.width+"x"+k.height,f=RegExp(e=="swap"?g.width+"x"+g.height:g.height+"x"+g.width,"g");g=e!=null?Y(e=="swap"&&d.is(".portrait, .landscape")?d.hasClass("landscape")?0:-90:e):Y(g);var l=d.text();if(d.hasClass("c
@ayhansipahi
ayhansipahi / pagesrc.js
Created May 23, 2013 11:31
add page src to content
javascript:(function(){var tmp=$('body').html().toString();$('body').append('<div id=\"src\"></div>');$('#src').text(tmp)})();
@ayhansipahi
ayhansipahi / zamanlı uyarı
Created July 10, 2013 14:14
zaman ayarlı uyarı
var tmpTime= new Date().getTime();
var tmpid ="result_not_found"+tmpTime;
var noResult ='<div id="'+tmpid+'" class="alert alert-error"><button type="button" class="close" data-dismiss="alert">&times;</button>Sorry,no result found!</div>';
$("#content").prepend(noResult);
setTimeout(function(){$("#"+tmpid).fadeOut()},3000);
@ayhansipahi
ayhansipahi / google translate
Created September 12, 2013 14:10
google translate widget
<div id="google_translate_element"></div>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
autoDisplay: false,
gaTrack: true,
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');