Skip to content

Instantly share code, notes, and snippets.

View thackerronak's full-sized avatar

Ronak Thacker (smartSense) thackerronak

  • smartSense solutions
  • Ahmedabad
View GitHub Profile
@bulkan
bulkan / user.js
Created January 7, 2015 22:39
Mocking Sequelize model function
var Promise = require('bluebird');
var sinon = require('sinon');
var User = require('./db/models').User;
describe('User model', function(){
var userFindStub;
var sandbox;
before(function(){
sandbox = sinon.sandbox.create();
@molivier
molivier / gist:271bba5d67de1583a8e3
Last active June 28, 2024 22:38
Set $GOPATH on Mac OSX : bash_profile
# Edit ~/.bash_profile
export GOPATH=/Users/$USER/go
export PATH=$GOPATH/bin:$PATH
# Reload profile : source ~/.bash_profile
@alex-arriaga
alex-arriaga / angular-i18n.example.com
Last active July 6, 2023 15:32
Nginx sample configuration for an Angular Multilingual application
server {
listen 80;
root /var/www/html/my-app/dist;
index index.html index.htm;
server_name angular-i18n.example.com www.angular-i18n.example.com;
location /en/ {