Skip to content

Instantly share code, notes, and snippets.

View ekinertac's full-sized avatar
🥳

Ekin Ertaç ekinertac

🥳
View GitHub Profile
@ekinertac
ekinertac / jquery_rotate.html
Created March 30, 2012 22:59
jQuery / CSS rotation on click
<html>
<head>
<link href="test2.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
</head>
<body onclick="Spin()">
<div class="helpTip">
<h2>Click Anywhere</h2>
<div>to start</div>
{
"files":
{
"CodeIgniter Install": "https://raw.github.com/ekinertac/ci_res/master/files/install.php",
"Reset CSS": "http://meyerweb.com/eric/tools/css/reset/reset.css",
"jQuery": "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js",
"jQuery UI": "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js",
"less.js": "http://lesscss.googlecode.com/files/less-1.3.0.min.js",
"markdown.css": "http://cdn.bitbucket.org/kevinburke/markdowncss/downloads/markdown.css"
},
@ekinertac
ekinertac / jQueryDock
Created April 26, 2012 15:27
jQuery dock plugin
function distance(x0, y0, x1, y1) {
var xDiff = x1-x0;
var yDiff = y1-y0;
return Math.sqrt(xDiff*xDiff + yDiff*yDiff);
}
asdasdasd $(document).ready(function() {
var proximity = 180;
var iconSmall = 48, iconLarge = 128; //css also needs changing to compensate with size
@ekinertac
ekinertac / tacirnet_filemanager.js
Created April 30, 2012 15:29
Tacirnet Filemanager Javascript Codes
var protocol = window.location.protocol,
domain = window.location.hostname,
filePath = protocol + '//' + domain + '/admin/tacir-filemanager-git/',
deletePath = protocol + '//' + domain + '/admin/tacir-filemanager-sil/',
createFolderPath = protocol + '//' + domain + '/admin/tacir-filemanager/tacir-filemanager-yeniklasor/',
renamePath = protocol + '//' + domain + '/admin/tacir-filemanager-isimdegistir/';
function getFolder(folderPath){
if(!folderPath){
@ekinertac
ekinertac / win7boot.bat
Created May 22, 2012 21:14
Create Bootable Thumb-Drive from windows(cmd)
$ diskpart
$ list disk
select disk 2 # write your own disk number
clean # this will delete disk's partitions
create partition primary size=1000 # write disk size in MegaBytes)
select partition 1 # select parition you just created
active # set active partition
format fs=fat32 quick # quick format with fat32 file system (fat32/extFat/NTFS)
assign # mount the disk
@ekinertac
ekinertac / icoMoon.html
Created May 23, 2012 11:40
Ico Moon Usage
<!-- Don't Forget Add font files to your document folder -->
<!-- Add Stylesheet to document -->
<link rel="stylesheet" href="icoMoon.css"/>
<!-- and HTML Magic -->
<i class="icon home"></i>
<!-- that's it -->
@ekinertac
ekinertac / inception-javascript.js
Created May 23, 2012 14:32 — forked from canwe/inception-javascript.js
inception explained as a 4 nested javascript closures
/*
* Fabrizio Calderan, twitter @fcalderan, 2010.11.02
* I had an idea: could Inception movie be explained by a few javascript closures
* and variable resolution scope (just for fun)?
*
* Activate javascript console =)
*/
<script>
console.group("inception movie");
@ekinertac
ekinertac / website.conf
Created May 23, 2012 23:37
Apache Add Web Site
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/example.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
@ekinertac
ekinertac / colors.sh
Created May 24, 2012 18:04
Terminal Color Codes
Black 0;30 Dark Gray 1;30
Red 0;31 Bold Red 1;31
Green 0;32 Bold Green 1;32
Yellow 0;33 Bold Yellow 1;33
Blue 0;34 Bold Blue 1;34
Purple 0;35 Bold Purple 1;35
Cyan 0;36 Bold Cyan 1;36
Light Gray 0;37 White 1;37
@ekinertac
ekinertac / resp.html
Created June 12, 2012 12:23
Responsive Design Testing Page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }