Skip to content

Instantly share code, notes, and snippets.

Brennan Novak bnvk

Block or report user

Report or block bnvk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bnvk
bnvk / indie-store-project-snippet-rough
Created Mar 17, 2014
IndieStore Project Snippet (rough)
View indie-store-project-snippet-rough
{
"description": "A modern, fast web-mail client with user-friendly encryption and privacy features",
"license_url": "https://raw.github.com/pagekite/Mailpile/master/LICENSE-2.0.txt",
"logo": "mailpile.png",
"notes": "",
"privacy_url": "",
"source_url": "https://github.com/pagekite/mailpile",
"name": "Mailpile",
"tos_url": "",
"url": "https://mailpile.is",
@bnvk
bnvk / gist:c5e158cb4d9f0e54edda
Created Jun 29, 2014
IndieMark 1 (author h-card)
View gist:c5e158cb4d9f0e54edda
<div class="vcard h-card">
<img class="u-photo photo" src="https://brennannovak.com/uploads/sites/1/Me_Train_Tracks_200.jpg">
<p class="p-note">
<a rel="me" href="https://brennannovak.com" class="u-url url p-name fn">
<span class="p-given-name given-name">Brennan</span>
<span class="p-family-name family-name">Novak</span>
</a>
<span class="p-job-title">internet builder</span>
<span class="p-job-title">co-founder</span>
<span class="p-job-title">software engineer</span>
View gist:d1049b762afd66fa50fd
Verifying myself: My Bitcoin username is +bnvk. https://onename.io/bnvk
View gist:ea3b264793e9216efad1
### Keybase proof
I hereby claim:
* I am bnvk on github.
* I am bnvk (https://keybase.io/bnvk) on keybase.
* I have a public key whose fingerprint is 01AE EADB 9EED 1B5B 4280 E5B6 C4CA A23B 0F8C 68B2
To claim this, I am signing this object:
View sass_and_less_compared.markdown

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

View email2matrix.py
import email
import json
import sys
import random
from matrix_client.api import MatrixHttpApi
html_template = (
"<b>From</b>: %(from)s\n"
"<b>To</b>: %(to)s\n"
View gist:245797
<div id="lightbox" style="display: none">
<div id="lightbox-header"><img src="../images/lightbox_header.jpg" border="0" /></div>
<div class="authorize">
<div class="facebook-column">
Share on Facebook
<%= fb_connect_javascript_tag %>
<%= init_fb_connect "XFBML"%>
<% js = update_page {|page| page.redirect_to fb_status_path}%>
<%= fb_login_button js%>
</div>
View CodeIgniter .htaccess
.htaccess for CodeIgniter allows folders in the root folder such as css js images, etc
===========================================================================================
Options +FollowSymLinks
RewriteEngine On
RewriteCond $1 !^(index\.php|favicon\.ico|css|js|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
View CodeIgniter Config
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
View gist:345184
echo implode($geo_data);
67.160.143.219USUnited StatesOregonPortland45.5184-122.655-8-8-7
echo print_r($geo_data);
Array ( [ip] => 67.160.143.219 [country_code] =>
SimpleXMLElement Object ( [0] => US ) [country_name] =>
You can’t perform that action at this time.