Skip to content

Instantly share code, notes, and snippets.

Jason Dobry jmdobry

Block or report user

Report or block jmdobry

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
@romankierzkowski
romankierzkowski / 0_falsy_.js
Last active Aug 29, 2015
True, False and Equal in JS
View 0_falsy_.js
/* false, 0, undefined, null, NaN, "" are false */
> Boolean(false)
false
> Boolean(0)
false
> Boolean("")
false
> Boolean(undefined)
false
@plentz
plentz / nginx.conf
Last active Sep 17, 2019
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@hrbrmstr
hrbrmstr / bls.R
Created Sep 15, 2013
Sample of how to extract and process US Bureau of Labor Statistics JSON API data : http://www.bls.gov/developers/
View bls.R
library(RCurl)
library(RJSONIO)
library(ggplot2)
# get data formats from: http://www.bls.gov/help/hlpforma.htm
# this one is "Average Hourly Earnings of All Employees: Private Service-Providing (CEU0800000003)"
bls.content <- getURLContent("http://api.bls.gov/publicAPI/v1/timeseries/data/CEU0800000003")
bls.json <- fromJSON(bls.content, simplify=TRUE)
bls.df <- data.frame(year=sapply(bls.json$Results[[1]]$series[[1]]$data,"[[","year"),
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Sep 15, 2019
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@geddski
geddski / service-demystification-test.js
Created Jun 19, 2013
Demystification of Angular's services.
View service-demystification-test.js
var expect = chai.expect;
describe('services', function(){
var goat, monkey, monkey2, Donkey, tiger1, tiger2, lion;
beforeEach(function(){
//load the module
module('app');
//configure providers
@desandro
desandro / require-js-discussion.md
Created Jan 31, 2013
Can you help me understand the benefit of require.js?
View require-js-discussion.md

I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.

From Require.js - Why AMD:

The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"

I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.


@solderjs
solderjs / How to AWS-EC2.md
Last active Dec 11, 2015
How to sign up for Amazon Web Service (VPS) Free Tier
@Wizek
Wizek / logFactory.js
Last active Oct 11, 2015
Superpowered logging for AngularJS
View logFactory.js
// Superpowered logging for AngularJS.
angular.module('logFactory', ['ng'])
.value('logFactory_whiteList', /.*/)
//.value('logFactory_whiteList', /!|.*Ctrl|run/)
.value('logFactory_piercingMethods', {warn:true, error:true})
.factory('logFactory', ['$log', 'logFactory_whiteList' , 'logFactory_piercingMethods', function ($log, whiteList, piercing) {
piercing = piercing || {}
View jenkins-notes.md

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

@joelverhagen
joelverhagen / README.md
Created Feb 12, 2012
Jekyll YouTube Embed Plugin
View README.md

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}
You can’t perform that action at this time.