Permalink
Browse files

Initial GitHub release

  • Loading branch information...
stefangabos committed Mar 7, 2013
0 parents commit ad7ce886d5afb0a07afb43e9a742eec36a80503b
Showing with 1,588 additions and 0 deletions.
  1. +22 −0 .gitattributes
  2. +167 −0 .gitignore
  3. +9 −0 README.md
  4. +1 −0 changelog.txt
  5. +1 −0 documentation.txt
  6. +84 −0 examples/index.html
  7. +8 −0 examples/libraries/index.html
  8. +165 −0 examples/libraries/syntaxhighlighter/LGPL-LICENSE
  9. +20 −0 examples/libraries/syntaxhighlighter/MIT-LICENSE
  10. +8 −0 examples/libraries/syntaxhighlighter/index.html
  11. +8 −0 examples/libraries/syntaxhighlighter/public/css/index.html
  12. +324 −0 examples/libraries/syntaxhighlighter/public/css/shCoreDefault.css
  13. +8 −0 examples/libraries/syntaxhighlighter/public/index.html
  14. +8 −0 examples/libraries/syntaxhighlighter/public/javascript/index.html
  15. +91 −0 examples/libraries/syntaxhighlighter/public/javascript/shBrushCss.js
  16. +52 −0 examples/libraries/syntaxhighlighter/public/javascript/shBrushJScript.js
  17. +69 −0 examples/libraries/syntaxhighlighter/public/javascript/shBrushXml.js
  18. +17 −0 examples/libraries/syntaxhighlighter/public/javascript/shCore.js
  19. +8 −0 examples/public/css/index.html
  20. +94 −0 examples/public/css/reset.css
  21. +35 −0 examples/public/css/style.css
  22. +8 −0 examples/public/index.html
  23. +19 −0 examples/public/javascript/core.js
  24. +8 −0 examples/public/javascript/index.html
  25. +4 −0 examples/public/javascript/jquery-1.7.2.js
  26. +8 −0 index.html
  27. +165 −0 license.txt
  28. +8 −0 public/index.html
  29. +8 −0 public/javascript/index.html
  30. +1 −0 public/javascript/zebra_cookie.js
  31. +159 −0 public/javascript/zebra_cookie.src.js
  32. +1 −0 readme.txt
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
@@ -0,0 +1,167 @@
#################
## Eclipse
#################
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover
## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
# Visual Studio profiler
*.psess
*.vsp
# ReSharper is a .NET coding add-in
_ReSharper*
# Installshield output folder
[Ee]xpress
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish
# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
############
## Windows
############
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
#############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
# Mac crap
.DS_Store
## custom
todo.txt
@@ -0,0 +1,9 @@
**Zebra_Cookie**: an extremely small (~500 bytes minified) jQuery plugin for writing, reading and deleting cookies.
Features:
- easily write, read and delete cookies
- very simple and intuitive syntax, blending perfectly with jQuery
- extremely small: with around 500 bytes when minified is probably the smallest and most optimized jQuery plugin for handling cookies
@@ -0,0 +1 @@
See http://stefangabos.ro/jquery/zebra-cookie/#changelog
@@ -0,0 +1 @@
See http://stefangabos.ro/jquery/zebra-cookie/#how-to-use
@@ -0,0 +1,84 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Zebra_Cookie examples</title>
<link rel="stylesheet" href="public/css/reset.css" type="text/css">
<link rel="stylesheet" href="public/css/style.css" type="text/css">
<link rel="stylesheet" href="libraries/syntaxhighlighter/public/css/shCoreDefault.css" type="text/css">
<script type="text/javascript" src="public/javascript/jquery.1.6.4.js"></script>
<script type="text/javascript" src="../public/javascript/zebra_cookie.js"></script>
<script type="text/javascript" src="public/javascript/core.js"></script>
<script type="text/javascript" src="libraries/syntaxhighlighter/public/javascript/shCore.js"></script>
<script type="text/javascript" src="libraries/syntaxhighlighter/public/javascript/shBrushJScript.js"></script>
<script type="text/javascript" src="libraries/syntaxhighlighter/public/javascript/shBrushXml.js"></script>
<script type="text/javascript" src="libraries/syntaxhighlighter/public/javascript/shBrushCSS.js"></script>
<script type="text/javascript">
SyntaxHighlighter.defaults['toolbar'] = false;
SyntaxHighlighter.all();
</script>
</head>
<body>
<div class="main-wrapper">
<h2>Zebra_Cookie examples</h2>
<h4>Installation</h4>
<p>Load the latest version of jQuery either from a local source, or from a CDN</p>
<pre class="brush:html">
&lt;script type="text/javascript" src="path/to/jQuery.js"&gt;&lt;/script&gt;
</pre>
<p>Load the Zebra_Cookie plugin</p>
<pre class="brush:html">
&lt;script type="text/javascript" src="path/to/zebra_cookie.js"&gt;&lt;/script&gt;
</pre>
<div class="hr"></div>
<h4>Usage</h4>
<pre class="brush:javascript">
// inside the DOM-ready function
// a "cookie" object will be available in jQuery&rsquo;s namespace
// the object exposes 3 methods that you can use to write, read and delete cookies
$(document).ready(function() {
// create a session cookie (expires when the browser closes)
$.cookie.write('cookie_name', 'cookie_value');
// create a cookie that expires in 1 day
$.cookie.write('cookie_name', 'cookie_value', 24 * 60 * 60);
// read a cookie&rsquo;s value
// following the examples above, this should return "cookie_value"
$.cookie.read('cookie_name');
// the "read" method returns null if the cookie doesn&rsquo;t exist
$.cookie.read('non_existing_cookie_name');
// delete the cookie
$.cookie.destroy('cookie_name');
});
</pre>
</div>
</body>
</html>
@@ -0,0 +1,8 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
Oops, something went wrong.

0 comments on commit ad7ce88

Please sign in to comment.