This file contains 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
# Cleaning out android files | |
find / -size +1G | grep android | |
# Find largest files in fodlers | |
du -a projects/ | sort -n -r | head -n 5 | |
# Apple storage delete | |
https://stackoverflow.com/questions/29930198/can-i-delete-data-from-ios-devicesupport |
This file contains 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
const SUBMIT_BUG = 'bugshift/SUBMIT_BUG'; | |
const initialState = []; | |
export default function reducer(state = initialState, action = {}) { | |
const { type, payload } = action; | |
switch (type) { | |
case SUBMIT_BUG: | |
return [{ |
This file contains 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
" Sampled from Gary Bernhardt's .vimrc file | |
" vim:set ts=2 sts=2 sw=2 expandtab: | |
call pathogen#incubate() | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" BASIC EDITING CONFIGURATION | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
" allow unsaved background buffers and remember marks/undo for them |
This file contains 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
# List branches sorted by date (with date) | |
git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(authorname) %(refname:short)' |
This file contains 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
" Modified version of Gary Bernhardt's .vimrc file | |
" vim:set ts=2 sts=2 sw=2 expandtab: | |
call pathogen#incubate() | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" BASIC EDITING CONFIGURATION | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible | |
" allow unsaved background buffers and remember marks/undo for them |
This file contains 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
<html> | |
<head> | |
<link type="text/css" href="style.css" rel="stylesheet"/> | |
</head> | |
<body> | |
<ul class="submenu"> | |
<li class="active"> | |
<a href="overall" class="overall"> | |
Overall | |
</a> |
This file contains 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
//Check out the slides at https://speakerdeck.com/u/ryan_fischer/p/intro-to-mongodb | |
//create new document in collection, including an array and date | |
db.members.insert( {name:"Ryan", age: 29, skills: ["ruby", "mongodb"], created_at: new Date()}); | |
//find created user | |
db.members.find({name:"Ryan"}); | |
//update user | |
db.members.update( {name: "Ryan"}, {$set: {age: 28}}, 0, 0); |
This file contains 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
add_comment = (data) -> | |
if data.state == "success" | |
html = """ | |
<tr> | |
<td class='avatar'> | |
<img src='#{data.comment.avatar_url}'/> | |
</td> | |
<td> | |
<h4>#{data.comment.name}<h4> | |
<h5>#{data.comment.date}</h5> |
This file contains 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
#Example queries using the MongoDB Ruby Driver not a pattern for development | |
require 'mongo' | |
class Place | |
attr_accessor :name, :_id, :dis | |
def initialize args={} | |
args.each do |k,v| |