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
| # This setup defines a new command `vac` that activates a virtualenv. You can also add autocompletion to this command. | |
| # Prereq: All venv directories must be in the same place, I place mine under `~/venvs` | |
| # Function to activate virtualenv. Place this in your `.bashrc` file. | |
| ``` | |
| vac() { | |
| # activates a virutalenv environment | |
| # eg: vactivate llama_farm | |
| source "$HOME/venvs/$1/bin/activate" | |
| } |
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
| conky.config = { | |
| background = true, | |
| update_interval = 1.5, | |
| cpu_avg_samples = 2, | |
| net_avg_samples = 2, | |
| out_to_console = false, | |
| override_utf8_locale = true, | |
| double_buffer = true, | |
| no_buffers = true, | |
| text_buffer_size = 32768, |
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
| __author__ = 'ssbushi' | |
| # Import the toolkit and tags | |
| import nltk | |
| from nltk.corpus import treebank | |
| # Train data - pretagged | |
| train_data = treebank.tagged_sents()[:3000] | |
| print train_data[0] |
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
| var http = require('http'); | |
| var url = require('url'); | |
| var request = require('request'); | |
| /* | |
| Start server by `nodejs thisfile.js` | |
| Usage: goto "localhost:1337?url=http://www.google.com" to proxify google | |
| */ | |
| //Custom set the PORT, or you can use one defined in the env. | |
| http.createServer(onRequest).listen(1337); |