Skip to content

Instantly share code, notes, and snippets.

🌵
Cactus

Mike Bifulco mbifulco

🌵
Cactus
Block or report user

Report or block mbifulco

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
View how-to-firebase-3-two-ref-join.js
var userRef = ref.child(‘users/+ userId);
var userTransactionsRef = ref.child(‘transactions/+ userId);
Promise.all([
 userRef.once(‘value’),
 userTransactionsRef.once(‘value’)
]).then(function (snaps) {
 var user = snaps[0].val();
 var userTransactions = snaps[1].val();
});
@Atlas7
Atlas7 / remove_postgres_on_mac_os.md
Last active May 23, 2019
Note - How completely uninstall PostgreSQL 9.X on Mac OSX
View remove_postgres_on_mac_os.md

This blog post has helped me clean up my postgres development environment on Mac. So making a copy!

How completely uninstall PostgreSQL 9.X on Mac OSX

This article is referenced from stackoverflow:

If installed PostgreSQL with homebrew , enter brew uninstall postgresql

If you used the EnterpriseDB installer , follow the following step.
@rt2zz
rt2zz / excerpt.js
Created Nov 29, 2015
disable persistStore in node environment
View excerpt.js
if (typeof self === 'object') persistStore(store)
@mbifulco
mbifulco / gist:2ad8529ca154d73c2d69
Created Oct 11, 2015
Open EdX certificate generation javascript
View gist:2ad8529ca154d73c2d69
<p id="verify_button_by_clicking_msg">By clicking the button below, you assert that you have completed the course in its entirety.</p>
<p><input type=button value="Yes, I Agree." id="User_Verify_Button" style="margin-bottom: 20px;" /></p>
<p class="verify-button-success-text" style="font-weight: bold; color: #008200;"></p>
<script type="text/javascript">
var success_message = "Your grading and certification request has been received, <br />if you have passed, your certificate should be available in the next 20 minutes.";
var failure_message = "We're sorry; users who haven't created accounts and registered for the course may not receive Statements of Accomplishment.";
// for actual value of username, use scraped_username.split(':')[1].trim(); to get actual value
@mbifulco
mbifulco / function.js
Created Aug 25, 2015
jquery dictionary
View function.js
//characters we want to replace:
/*
< with &lt;
> with &gt;
*/
var jsob =
@andrewpmiller
andrewpmiller / Lighttpd-Pi-Installation-Notes.md
Last active May 1, 2019
How to install Lighttp on a Rasberry Pi
View Lighttpd-Pi-Installation-Notes.md

Lighttpd - Installation and Setup for Raspberry Pi

Installation

sudo apt-get update && apt-get upgrade
sudo apt-get install lighttpd

Permissions

@octocat
octocat / .gitignore
Created Feb 27, 2014
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@adelevie
adelevie / account-controller.js
Last active Dec 2, 2017
Parse.com + Angular.js + Login (+ OAuth.js)
View account-controller.js
'use strict';
/**
* AccountController allows the User to change settings, link with their GitHub accounts, etc
*/
skeletonApp.controller('AccountController', [
'$scope', '$location', '$rootScope', 'OAuthService', 'ParseService', function($scope, $location, $rootScope, OAuthService, ParseService) {
// redirect to "/login" if user is not logged in
@adamgit
adamgit / .gitignore
Last active Oct 24, 2019
.gitignore file for Xcode4 / OS X Source projects
View .gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
You can’t perform that action at this time.