Angularjs app to help better understand the properties of css Flexbox
A Pen by paul trone on CodePen.
| ActivityFeedController line 11 says: | |
| ```@activities = @current_user. | |
| feed_activities. | |
| excluding(@current_user). | |
| newest``` | |
| [9:43 AM] tim: change that to: | |
| ```@activities = @current_user. | |
| feed_activities. | |
| for_account(@current_user.account.id). |
| # initialize git depository in the current directory | |
| git init . | |
| # display the git remote/origin | |
| cat .git/config | |
| # display gitconfig | |
| cat .gitconfig | |
| # display where the HEAD is pointing |
Angularjs app to help better understand the properties of css Flexbox
A Pen by paul trone on CodePen.
| # Copy and paste this to the rails console to test your email settings | |
| class MyMailer < ActionMailer::Base | |
| def test_email | |
| @recipients = "someone@somewhere.com" | |
| @from = "must_be_same_as_smpt_account_login@gmail.com" | |
| @subject = "test from the Rails Console" | |
| @body = "This is a test email" | |
| end | |
| end |
| ### Homebrew | |
| ### Uninstall | |
| ``` | |
| rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup | |
| ``` | |
| ### Install cask | |
| ``` | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| <!DOCTYPE html> | |
| <!-- Based on HTML5 Bones | http://html5bones.com --> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Page Title</title> | |
| <meta name="description" content=""> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| html { |
| @font-face { | |
| font-family: "Proxima Nova"; | |
| src: url(data:font/opentype;base64,d09GRgABAAAAAEywABIAAAAAg3QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEWU5BAAAGbAAAALgAAAGJNI0oHkZGVE0AAAGUAAAAHAAAABxdnq2WR0RFRgAAByQAAAA4AAAAQgSqBTxHUE9TAAAHXAAABCIAABH0zI0AF09TLzIAAAXUAAAAVwAAAGCAz3p9Y21hcAAASvgAAAG2AAAC5lCJVL9jdnQgAAABsAAAAB4AAAAeCkcLCmZwZ20AAAHQAAABsgAAAmUjtC+nZ2FzcAAAA4QAAAAIAAAACAAAABBnbHlmAAALgAAAO4sAAF8I3FzIU2hlYWQAAAOMAAAANQAAADb9TDtqaGhlYQAABiwAAAAgAAAAJA9PBsBobXR4AABHDAAAAh8AAANsqw8hfGxvY2EAAEksAAABuAAAAbhtqYQ8bWF4cAAABkwAAAAgAAAAIAIDAhpuYW1lAAADxAAAAawAAANRLIw+gnBvc3QAAErkAAAAEwAAACD/DQAocHJlcAAABXAAAABjAAAAdNUcAaMAAAABAAAAAMmJbzEAAAAAyRrF1wAAAADK+niN/pAAAAPGBTYBYADCANABNgE+AWgBmQDkAZIBkAFYAAB42l1Ru05bQRDdDQ+TBBJjg+RoU8xmQhrvhYYCJBBXF8XIdmM5QtqNXORiXMAHUCBRg/ZrBmgoKdKmQcgFUj6BT0BiZk2iKM3Ozuycc+bMknKk6l1a73nqnARSuNOg2abfDql2FuCedH21kZF28EDzzYxeuW7ff8VgM5pyRw2gvOct5SGjaSdQi/bU/za/guE+/2Qeg0FLM01PrZOQHkJgvhm3MPie0ay7/KQvWB0uBgNDimkq7vJzKuV/S3Outgibaxm9dnAmIj+ZBmhqpY1A0186pHo+jmIJctkw1gYTU9afZCL4ZjJd1VQtM751cJfszDt |
| function showViewPortSize(display) { | |
| if(display) { | |
| var height = window.innerHeight; | |
| var width = window.innerWidth; | |
| jQuery('body').prepend('<div id="viewportsize" style="z-index:9999;position:fixed;bottom:0px;left:0px;color:#fff;background:#000;padding:10px">Height: '+height+'<br>Width: '+width+'</div>'); | |
| jQuery(window).resize(function() { | |
| height = window.innerHeight; | |
| width = window.innerWidth; | |
| jQuery('#viewportsize').html('Height: '+height+'<br>Width: '+width); | |
| }); |