This file contains hidden or 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
| ```sh | |
| pip install -r requirements.txt | |
| python mccmnc.py | |
| ``` |
This file contains hidden or 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
| { | |
| "IAB1": "Arts & Entertainment", | |
| "IAB1-1": "Books & Literature", | |
| "IAB1-2": "Celebrity Fan/Gossip", | |
| "IAB1-3": "Fine Art", | |
| "IAB1-4": "Humor", | |
| "IAB1-5": "Movies", | |
| "IAB1-6": "Music", | |
| "IAB1-7": "Television", | |
| "IAB2": "Automotive", |
This file contains hidden or 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
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks("grunt-git-changedfiles"); | |
| grunt.loadNpmTasks("grunt-jsbeautifier"); | |
| grunt.loadNpmTasks("grunt-contrib-jshint"); | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| code: ["Gruntfile.js", "src/**/*.js", "lib/**/*.js", "test/**/*.js"], | |
| // Check https://github.com/einars/js-beautify#options |
This file contains hidden or 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
| # Based on http://stackoverflow.com/a/6127884/722997 | |
| # Remote already merged local branches | |
| git branch --merged | grep -v "\*" | grep -v develop | grep -v master | xargs -n 1 git branch -d | |
| # Remote already merged remote branches | |
| git branch --remote --merged | grep -v release | grep -v develop | grep -v master | sed s/origin\\///g | xargs -n 1 git push --delete origin |
This file contains hidden or 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
| # Numerous temporary extensions | |
| *.diff | |
| *.err | |
| *.orig | |
| *.log | |
| *.rej | |
| *.swo | |
| *.swp | |
| *.vi | |
| *.bck |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ Test HTTP Server | |
| This script starts a http server that will respond to HTTP requests | |
| with a predefined response. | |
| Usage: | |
| ./http_server.py --port=8080 --code=404 --content="Page not Found" |
This file contains hidden or 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
| configurations { | |
| ajc | |
| aspects | |
| ajInpath | |
| } | |
| dependencies { | |
| ajc 'org.aspectj:aspectjtools:1.7.2' | |
| compile 'org.aspectj:aspectjrt:1.7.2' | |
| } |
This file contains hidden or 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
| import unittest | |
| from pyshould import should | |
| class ExceptionTestCase(unittest.TestCase): | |
| """ Simple tests for exception assertions """ | |
| def test_expect_throw_non_empty_constructor_exception(self): | |
| with should.throw(NonEmptyConstructorException): | |
| raise NonEmptyConstructorException([]) |