I hereby claim:
- I am florida on github.
- I am florida (https://keybase.io/florida) on keybase.
- I have a public key whose fingerprint is 750C 7903 345B 7550 5424 2688 C615 1782 BD16 287F
To claim this, I am signing this object:
| # Reading with active record | |
| # inspecting an object | |
| # this will output the value | |
| puts Object.first.inspect | |
| # counts the number of objects in the database | |
| puts Object.count | |
| puts Object.size |
| # Validations may cause errors | |
| # since if an object is required to have certain values | |
| # and saved without them it will not be saved to the database. | |
| # Here I am creating a method that will accept an object and attempt to save it | |
| # it will also display the relevant errors | |
| def check_for_errors(obj) | |
| if (obj.save) | |
| puts "save was successful" |
| <?php | |
| // This will get today's date | |
| $today = getdate(); | |
| print "Today is $today[month] $today[mday], $today[year]"; | |
| // Creating a new DateTime object | |
| $new_date = new DateTime('02/31/2011'); | |
| ?> |
| engine = Swiftype::Engine.find('engine-slug') | |
| type = engine.document_type('books') | |
| type.create_document({ | |
| :external_id => id | |
| :fields}) |
| def last_man_standing(total) | |
| total_in_circle = *1..total | |
| until total_in_circle.size == 1 | |
| for i in (1..((total_in_circle.size.to_f / 2)).ceil) | |
| if total_in_circle[i] == total_in_circle[total_in_circle.size - 2] | |
| total_in_circle.delete_at i | |
| total_in_circle.delete_at(0) | |
| else | |
| total_in_circle.delete_at i |
| # Auto color for diffs - | |
| [color] | |
| ui = auto | |
| [alias] | |
| # shows the changed words in one line instead of two | |
| wdiff = diff --color-words | |
| # one line logs | |
| oneline = log --oneline --decorate |
| <link rel="import" href="../core-scaffold/core-scaffold.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../core-menu/core-menu.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> | |
| <link rel="import" href="../core-tooltip/core-tooltip.html"> | |
| <link rel="import" href="../chart-js/chart-js.html"> | |
| <link rel="import" href="../paper-button/paper-button.html"> |
I hereby claim:
To claim this, I am signing this object:
| var raf = require('raf') // requestAnimationFrame polyfill | |
| var Isomer = require('isomer') // 3ds | |
| var ease = require('ease-component') // easing | |
| var Color = require('color') | |
| // duration of loop / speed of animation | |
| var duration = 5000 | |
| // create a canvas element and add it to the page |
| var raf = require('raf'); | |
| var Isomer = require('isomer'); | |
| var ease = require('ease-component'); | |
| var Color = require('color'); | |
| var duration = 5000 | |
| // create a canvas element and add it to the page | |
| var canvas = document.createElement('canvas') |