Skip to content

Instantly share code, notes, and snippets.

@YonasBerhe
YonasBerhe / main.css
Created December 30, 2014 03:37
[generator-webapp] autoprefixer:dist, running grunt serve, and this issue keeps occurring
body {
padding-top: 70px; /* Required padding for .navbar-fixed-top. Change if height of navigation changes. */
}
.navbar-fixed-top .nav {
padding: 15px 0;
}
.navbar-fixed-top .navbar-brand {
@YonasBerhe
YonasBerhe / util.js
Created December 30, 2014 21:27
Range error
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
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',
@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">
@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 / 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 / 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 / data.json
Last active August 29, 2015 14:26
data! from editdata.org!
[]
@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

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