Skip to content

Instantly share code, notes, and snippets.

View Dev-Dipesh's full-sized avatar

Dipesh Bhardwaj Dev-Dipesh

  • The Contentment Foundation
  • San Francisco, California
View GitHub Profile
class GitHub
class << self
def download_file_to_string(github_token, setup={}, raw=true, link=nil)
if link
url = link
else
sql_repo_name = setup['repo_name']
sql_repo_owner = setup['repo_owner']
# URI join won't make it:
@Dev-Dipesh
Dev-Dipesh / Javascript Base64_encode_decode.md
Created November 8, 2015 06:20
Javascript Base 64 encoding/decoding
var Base64 = {
    _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",

    encode: function(input) {
        var output = "";
        var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
        var i = 0;

        input = Base64._utf8_encode(input);
@Dev-Dipesh
Dev-Dipesh / Navbar Example
Created July 25, 2013 02:16
Navbar example with multiple dropdown menus in navigation built with foundation framework from ZURB.
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1><a href="#">Top Bar Title </a></h1>
</li>
<!-- Remove the class "menu-icon" to get rid of menu icon. Take out "Menu" to just have icon alone -->
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>
paginate: 10
@Dev-Dipesh
Dev-Dipesh / South-Downs.markdown
Created September 3, 2013 01:53
A Pen by Dev-Dipesh.
@Dev-Dipesh
Dev-Dipesh / Gravity-Points.markdown
Created September 3, 2013 02:32
A Pen by AKM2.
@Dev-Dipesh
Dev-Dipesh / Little-Sunrise.markdown
Created September 3, 2013 02:32
A Pen by Oliver Knoblich.
@Dev-Dipesh
Dev-Dipesh / Search-Bar-Animation.markdown
Created September 3, 2013 02:51
A Pen by Marco Biedermann.
@Dev-Dipesh
Dev-Dipesh / index.html
Created September 3, 2013 02:50
A Pen by Tim Pietrusky.
<div class="loading"></div>
body {
margin:0; padding: 50px;
font: normal 14px/20px "DroidSansRegular",Arial,Helvetica,sans-serif;
color: #444;
background: #FAFAFA;
background: url("https://dl.dropboxusercontent.com/s/ckdneitoe3op63x/page_gradient_radial.svg") 50% -300px no-repeat, url("https://dl.dropboxusercontent.com/s/elu76zr7fn8xank/page_gradient_linear.svg") 50% 0 repeat-x, #FAFAFA;
background-size: 1600px 600px, 100% 500px,auto;
}
article {