Skip to content

Instantly share code, notes, and snippets.

View Cengizism's full-sized avatar
🧿

Cengiz Ulusoy Cengizism

🧿
View GitHub Profile
@Cengizism
Cengizism / gist:09174dfc2062bbdf3b1e
Created January 6, 2013 11:56
HTML > meta > apple mobile web app
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@Cengizism
Cengizism / gist:e9fde33ace2d4a54be04
Created January 6, 2013 11:58
html > meta > sets initial viewport load and disables zooming
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
@Cengizism
Cengizism / jquery :: timer
Created October 6, 2013 17:13
jquery :: timer
/**
* jquery.timer.js
*
* Copyright (c) 2011 Jason Chavannes <[email protected]>
*
* http://jchavannes.com/jquery-timer
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
@Cengizism
Cengizism / password_strength_plugin.js
Created November 16, 2013 20:27
password_strength_plugin.js
/**
* password_strength_plugin.js
* Copyright (c) 2009 myPocket technologies (www.mypocket-technologies.com)
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
@Cengizism
Cengizism / md5.js
Created November 16, 2013 20:27
md5.js
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*
@Cengizism
Cengizism / sortable_table_rows.html
Created November 16, 2013 20:30
sortable_table_rows.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en">
<head>
<!-- Above Doctype should provide S mode in Moz, Safari, Opera, IE8 and A (almost standards) in IE6/7 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Navigation Order</title>
<style type="text/css">
@Cengizism
Cengizism / responsive-template.css
Created November 17, 2013 13:51
responsive-template.css
@media (min-width: 768px) and (max-width: 979px) {
}
@media (max-width: 767px) {
}
@media (min-width: 1200px) {
}
@media (min-width: 768px) and (max-width: 979px) {
}
@media (max-width: 767px) {
@Cengizism
Cengizism / redirect with meta
Created December 7, 2013 15:52
redirect with meta
<!doctype html>
<html><head>
<title>Redirecting...</title>
<meta http-equiv="refresh" content="0;url=./test.html">
</head><body>
Redirecting...
</body></html>
@Cengizism
Cengizism / change route directive
Created December 7, 2013 16:06
change route directive
'use strict';
var directives = angular.module('guthub.directives', []);
directives.directive('butterbar', ['$rootScope',
function($rootScope) {
return {
link: function(scope, element, attrs) {
element.addClass('hide');
@Cengizism
Cengizism / angular-geolocation
Created March 19, 2014 12:28
angular-geolocation
angular.module('ngGeolocation',[])
.constant('options',{})
.factory('geolocation',
["$q","$rootScope","options",
function ($q , $rootScope , options){
return {
position: function () {
var deferred = $q.defer()
navigator.geolocation.getCurrentPosition(function (pos) {
$rootScope.$apply(function () {