Skip to content

Instantly share code, notes, and snippets.

View bnb's full-sized avatar

Tierney Cyren bnb

View GitHub Profile
@bnb
bnb / gist:6703905
Created September 25, 2013 18:28
Error on Tasky whenever I try to log on. Browser doesn't matter.
Warning: get_headers(https://bnb.cupcake.io/): failed to open stream: Connection refused in /home/diaspx10/public_html/dev/tasky/functions.php on line 27
Warning: Invalid argument supplied for foreach() in /home/diaspx10/public_html/dev/tasky/functions.php on line 28
Warning: Cannot modify header information - headers already sent by (output started at /home/diaspx10/public_html/dev/tasky/functions.php:27) in /home/diaspx10/public_html/dev/tasky/auth.php on line 105
@bnb
bnb / oatmailerror
Created January 8, 2014 18:22
Oatmail.io Untrusted Connection Error (FF v18.01)
This Connection is Untrusted
You have asked Firefox to connect
securely to oatmail.io, but we can't confirm that your connection is secure.
Normally, when you try to connect securely,
sites will present trusted identification to prove that you are
going to the right place. However, this site's identity can't be verified.
What Should I Do?
<section class="share">
<a class="twitter" href="http://twitter.com/share?text=The Idea Behind Meditate 108&amp;url=http://www.meditate108.com/2014/02/16/about/" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<i class="fa fa-twitter"></i>
</a>
<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=http://www.meditate108.com/2014/02/16/about/" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<i class="fa fa-facebook"></i>
</a>
<a href="//www.pinterest.com/pin/create/button/" data-pin-do="buttonBookmark">
<i class="fa fa-pinterest"></i>
</a>
@bnb
bnb / cupcakeURL
Created March 13, 2014 02:27
Broken bookmarklet
javascript:(function() {
javascript:location.href='http://cupcake.io/?textarea='
+encodeURIComponent(location.href)
+'&title='+encodeURIComponent(document.title)
})();
@bnb
bnb / cupcakeURL2
Created March 13, 2014 03:43
Better working but still not functional cupcake URL share bookmarklet.
javascript:(function() {
var title = encodeURIComponent(location.title);
var url = encodeURIComponent(location.href);
location.href='http://micro.cupcake.io/';
document.querySelector('textarea[name="text"]').textContent = '[' + title + ']' + '(' + url + ')';
})();
@bnb
bnb / gist:9941201
Created April 2, 2014 19:22
keybase.io auth
### Keybase proof
I hereby claim:
* I am bnb on github.
* I am bang (https://keybase.io/bang) on keybase.
* I have a public key whose fingerprint is 57FB 090E 5A6C 736B BB4A 7B9D E367 0625 EAC5 1329
To claim this, I am signing this object:
@bnb
bnb / disqus_identifier.js
Last active August 29, 2015 13:58
Disqus identifier suggestion for willsong.
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'MethodJS'; // required: replace example with your forum shortname
var disqus_identifier = '{{post.id}}'; // make sure to use the post.id as an identifier, otherwise disqus will use the pages url per default, which might be problematic...
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
@bnb
bnb / maltish.css
Created April 6, 2014 23:59
Missing code from style-maltish.css in Willsong theme.
#themecover_willsong {
background-position: center center;
-webkit-background-size: cover;
background-size: cover;
height: 102%;
left: 0;
position: fixed;
top: 0;
width: 102%;
z-index: -100;
@bnb
bnb / blog_recent.3.js
Created June 28, 2014 00:40
Why does this not work when running `node blog_recent.3.js`?
var http = require('http');
var fs = require('fs');
var server = http.createServer(function (req, res) {
getTitles(res);
}).listen(8000, "127.0.0.1");
function getTitles(res) {
fs.readFile('./titles.json', function (err, data) {
if (err) return hadError(err);
@bnb
bnb / names.js
Last active August 18, 2021 13:59
Looking for a way to loop back to names[0]. The if() is the only way I can think of, but I'm not sure how to actually implement it.
var names = [
"&!",
"bnb",
"bang",
"bitnb",
"bitandbang",
"Tierney Coren"
]
for(i = 0; i < names.length; i++){
$('.title')