Skip to content

Instantly share code, notes, and snippets.

View logan-pugh's full-sized avatar

Logan Pugh logan-pugh

View GitHub Profile
@logan-pugh
logan-pugh / hook-PyQt5.py
Created February 27, 2020 23:41
Example of overriding a default PyInstaller hook to exclude unneeded files
# File location: hooks/pre_find_module_path/hook-PyQt5.py
import glob
import os
from PyInstaller.utils.hooks import logger
def pre_find_module_path(api):
'''
@logan-pugh
logan-pugh / UserController.spec.js
Last active August 29, 2015 14:05
Sails.js testing setup
/**
* Location: /test/controllers/UserController.spec.js
*
* @description :: Tests the UserController
*/
var request = require('supertest'),
appHelper = require('../helpers/appHelper'),
userFixtures = require('../fixtures/users');