This file contains hidden or 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
| function fbExtendAuthentication(accessToken){ | |
| var extensionData = { | |
| grant_type: 'fb_exchange_token', | |
| client_id: '', //App ID | |
| client_secret: '', //App Secret, only secure because only admins see this page | |
| fb_exchange_token: accessToken, | |
| }; | |
| $.ajax('https://graph.facebook.com/oauth/access_token', { | |
| data: extensionData, |
This file contains hidden or 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
| exports.definition = { | |
| config: { | |
| extra_methods: [ | |
| { | |
| name: 'test', | |
| url: 'test', | |
| type: 'get' | |
| } | |
| ], | |
| extendModel: function(Model) { |
This file contains hidden or 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
| ################ | |
| ## Taxes 2017 ## | |
| ################ | |
| SINGLE_STD_DEDUCTION = 6350 | |
| MARRIED_STD_DEDUCTION = 12700 | |
| FEDERAL_INDIVIDUAL_INCOME_TAX_RATES = { | |
| 9325 => 0.10, | |
| 37950 => 0.15, | |
| 91900 => 0.25, |
This file contains hidden or 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
| // Avoid `console` errors in browsers that lack a console. | |
| (function() { | |
| var method; | |
| var noop = function () {}; | |
| var methods = [ | |
| 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
| 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
| 'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | |
| 'timeStamp', 'trace', 'warn' | |
| ]; |
This file contains hidden or 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
| # config/initializers/colorize.rb | |
| ## Just for prettier output | |
| class String | |
| def colorize(color, options = {}) | |
| background = options[:background] || options[:bg] || false | |
| style = options[:style] | |
| offsets = ["gray","red", "green", "yellow", "blue", "magenta", "cyan","white"] | |
| styles = ["normal","bold","dark","italic","underline","xx","xx","underline","xx","strikethrough"] | |
| start = background ? 40 : 30 |
This file contains hidden or 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
| export KITTENIFY=1 |
This file contains hidden or 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
| # == Schema Information | |
| # | |
| # Table name: foobars | |
| # | |
| # id :integer not null, primary key | |
| # created_at :datetime not null | |
| # updated_at :datetime not null | |
| # name :string(255) not null | |
| # baz :string(255) |
This file contains hidden or 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
| /* iPhone 4 */ | |
| @media | |
| only screen and (-webkit-min-device-pixel-ratio : 1.5), | |
| only screen and (min-device-pixel-ratio : 1.5) { | |
| /* Styles */ | |
| #centercol { | |
| width: 450px; | |
| } | |
| } |
NewerOlder