Skip to content

Instantly share code, notes, and snippets.

MONGOHQ_URL=mongodb://heroku:c-rJompa5mbNDiERpkBJMfKXbfSazY_YaBGqrnFzmwgao-WRaPHaU_ZED_TU7zp2C8lp3OV1azqFINmN6EQ27A@candidate.37.mongolayer.com:10928,candidate.13.mongolayer.com:11150/app40069500
==============
forego | starting web.1 on port 5000
web.1 |
web.1 | explore/bin/www
web.1 | connected to mongodb://heroku:c-rJompa5mbNDiERpkBJMfKXbfSazY_YaBGqrnFzmwgao-WRaPHaU_ZED_TU7zp2C8lp3OV1azqFINmN6EQ27A@candidate.37.mongolayer.com:10928,candidate.13.mongolayer.com:11150/app40069500
web.1 |
@YonasBerhe
YonasBerhe / gist:3cbbd40dbb2ab28896da
Last active August 28, 2015 04:28
Heroku error when logging server
2015-08-28T04:26:16.794368+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fatalshootings.herokuapp.com request_id=d1200171-cdb8-4cb0-975f-1f1ad9beee5a fwd="67.134.193.84" dyno= connect= service= status=503 bytes=
2015-08-28T04:26:17.188049+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fatalshootings.herokuapp.com request_id=a19059aa-f9cf-42a3-8737-fc8068e66fe9 fwd="67.134.193.84" dyno= connect= service= status=503 bytes=

jQuery

Objectives:

  • Describe why jQuery exists
  • Describe the difference between javascript and jQuery
  • Include jQuery locally or from a CDN
  • Include jquery from a source local to the project
  • Describe that $ is a function that returns a jQuery object
  • Write syntactically valid document ready statements
  • Explain what $(fn) / $(document).ready(fn) does and why it’s useful
@YonasBerhe
YonasBerhe / tmux-cheatsheet.markdown
Last active August 29, 2015 14:27 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@YonasBerhe
YonasBerhe / data.json
Last active August 29, 2015 14:26
data! from editdata.org!
[]
@YonasBerhe
YonasBerhe / angular.js
Created April 22, 2015 07:18
I keep getting this error in my console each time I run my angular app. I don't like Majic
function minErr(module, ErrorConstructor) {
ErrorConstructor = ErrorConstructor || Error;
return function() {
var code = arguments[0],
prefix = '[' + (module ? module + ':' : '') + code + '] ',
template = arguments[1],
templateArgs = arguments,
message, i;
@YonasBerhe
YonasBerhe / Error
Created April 22, 2015 07:14
I keep getting this error in my console each time I run my angular app. I don't like Majic
function minErr(module, ErrorConstructor) {
ErrorConstructor = ErrorConstructor || Error;
return function() {
var code = arguments[0],
prefix = '[' + (module ? module + ':' : '') + code + '] ',
template = arguments[1],
templateArgs = arguments,
message, i;
@YonasBerhe
YonasBerhe / gist:33b561e3d23b7bdc5a94
Created February 1, 2015 22:23
Rails S command, while building application.
yonas@yonas:~/Documents/code/MCtut/commandsapp$ rails s
=> Booting WEBrick
=> Rails 4.2.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:261:in `const_get': uninitialized constant U (NameError)
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:261:in `block in constantize'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:259:in `each'
from /usr/local/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/inflector/methods.rb:259:in `inject'
@YonasBerhe
YonasBerhe / opendata
Created January 9, 2015 06:48
opendata.html
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Seattle Data Day | Code for Seattle</title>
<meta name="description" content="A Seattle, WA event for CodeAcross and International Open Data Day. Seattle Data Day, on February 21, is a full day of events for incubating civic innovation in our city. We’re bringing together local governments, businesses, schools, and community organizations, as well as social service organizations, media outlets, foundations, and the public to collaborate on civic innovation that will help our residents and improve our region.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
yonas@yonas:~/Documents/code/vailroom/basehtml$ yo --version && echo $PATH $NODE_PATH && node -e 'console.log(process.platform, process.versions)' && cat Gruntfile.js
1.3.3
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript:/home/yonas/.node/lib/node_modules
linux { http_parser: '1.0',
node: '0.10.33',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.29',
zlib: '1.2.3',
modules: '11',