using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158345, -66.932911 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.445147, -66.559696 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Boolean firstTime = null; | |
/** | |
* Checks if the user is opening the app for the first time. | |
* Note that this method should be placed inside an activity and it can be called multiple times. | |
* @return boolean | |
*/ | |
private boolean isFirstTime() { | |
if (firstTime == null) { | |
SharedPreferences mPreferences = this.getSharedPreferences("first_time", Context.MODE_PRIVATE); | |
firstTime = mPreferences.getBoolean("firstTime", true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require("http"); | |
var url = require("url"); | |
var multipart = require("./multipart/multipart"); | |
var sys = require("sys"); | |
var fs = require("fs"); | |
var server = http.createServer(function(req, res) { | |
// Simple path-based request dispatcher | |
switch (url.parse(req.url).pathname) { | |
case '/': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li>Allergist or Immunologist</li> | |
<li>Anesthesiologist</li> | |
<li>Cardiologist</li> | |
<li>Dermatologist</li> | |
<li>Gastroenterologist</li> | |
<li>Hematologist/Oncologist</li> | |
<li>Internal Medicine</li> | |
<li>Nephrologist</li> | |
<li>Neurologist</li> | |
<li>Neurosurgeon</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Official framework image. Look for the different tagged releases at: | |
# https://hub.docker.com/r/library/node/tags/ | |
image: node:6 | |
before_script: | |
- npm install | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
become: yes | |
tasks: | |
- name: disable SELinux | |
command: setenforce 0 | |
- name: ensure net.bridge.bridge-nf-call-ip6tables is set to 1 | |
sysctl: | |
name: net.bridge.bridge-nf-call-ip6tables | |
value: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#default | |
server { | |
listen 80; | |
server_name api.foo.com; | |
client_max_body_size 20m; | |
keepalive_timeout 30; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes auto; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |