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
| """ | |
| Script for comparing Logistic Regression and associated evaluation metrics on the imbalanced Media 6 Degrees dataset from the Doing Data Science book. You'll need to download a copy of the dataset from the GitHub repo: https://github.com/oreillymedia/doing_data_science . | |
| Copyright 2016 Ronald J. Nowling | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.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
| #! /bin/bash | |
| # streaming on Ubuntu via ffmpeg. | |
| # see http://ubuntuguide.org/wiki/Screencasts for full documentation | |
| # see http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/ | |
| # for instructions on how to use this gist | |
| if [ ! -f ~/.twitch_key ]; then | |
| echo "Error: Could not find file: ~/.twitch_key" | |
| echo "Please create this file and copy past your stream key into it. Open this script for more details." |
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
| # using four part files to construct "minitweet" | |
| cat rawtweets/part-0000[1-3] > minitweets | |
| # change log4j properties to WARN to reduce noise during demo | |
| mv conf/log4j.properties.template conf/log4j.properties | |
| vim conf/log4j.properties # Change to WARN | |
| # launch Spark shell REPL | |
| ./bin/spark-shell |
Bootstrap 3.0 gives you access to the awesome icon set icon set by these dudes but it's not obvious for a Rails newbie like myself to get it all working together nicely
- Download the bootstrap-glyphicons.css from here. Save that file to
RAILS_ROOT/vendor/assets/stylesheet/bootstrap-glyphicons.css - Save all the font files in
/dist/fontsfrom the Bootstrap 3.0 download to a new folder in your Rails appRAILS_ROOT/vendor/assets/fonts - Add this folder to the asset pipeline by appending
config.assets.paths << Rails.root.join("vendor","assets", "fonts")toapplication.rbafter the line that hasclass Application < Rails::Application. - In
bootstrap-glyphicons.cssmodify the the `url
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
| So i was using Rails 4.1 with Unicorn v4.8.2 and when i tried to deploy my app it doesn't start properly and into the unicorn.log file i found this error message: | |
| "app error: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml` (RuntimeError)" | |
| After a little research i found that Rails 4.1 change the way to manage the secret_key, so if we read the secrets.yml file located at exampleRailsProject/config/secrets.yml (you need to replace "exampleRailsProject" for your project name) you will find something like this: | |
| # Do not keep production secrets in the repository, | |
| # instead read values from the environment. | |
| production: | |
| secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> |
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
| # Local executables | |
| export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # NPM executables (For folder local, and a global prefix of "~/npm") | |
| export PATH=./node_modules/.bin:$HOME/npm/bin:$PATH | |
| # Android SDK | |
| export ANDROID_HOME=~/bin/android-sdk | |
| export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH |
An incomplete list of different modeling tools and techniques for interesting art.
- Box Modeling a Spaceship https://www.youtube.com/watch?v=yaPd4ieTmng (Blender)
- Extrusion/Chamfer Architecture https://www.youtube.com/watch?v=dy81ldYQdgY (Sketchup)
- Generic Android Modeling https://www.youtube.com/watch?v=_s1VKqhbPh8 (Wings 3D)
- Generic Vehicle Modeling https://www.youtube.com/watch?v=QexXWfStXbs (Wings 3D)
- Boolean/Lathe Curves https://www.youtube.com/watch?v=J1AkE9SrFXQ (MOI)
Random tools to play around with music and sound, ranging from easy composition, generative, playgrounds, and code.
- http://www.fakemusicgenerator.com/
- http://codeminion.com/blogs/maciek/2008/05/cgmusic-computers-create-music/ (fakemusicgenerator is based on this)
https://github.com/zeroeth/rosey/tree/master/noduh
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript
http://css.maxdesign.com.au/selectutorial/index.htm http://css.maxdesign.com.au/floatutorial/
NewerOlder