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
| <!-- BEGIN TutorialTab --> | |
| <script type="text/javascript"> | |
| var _tutq = _tutq || []; | |
| _tutq.push(['setAccount', XXX]); // XXX - account ID | |
| _tutq.push(['setStartTime', new Number( new Date() )]); | |
| _tutq.push(['init']); | |
| (function() { | |
| var tuts = document.createElement('script'); tuts.type = 'text/javascript'; tuts.async = true; |
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
| <!-- BEGIN Marginize --> | |
| <script type="text/javascript"> | |
| // Start timing the load speed of mar.gy | |
| _margyStartTime = new Number( new Date() ); | |
| (function() { | |
| var margy = document.createElement('script'); margy.type = 'text/javascript'; margy.async = true; | |
| // TODO: switch to subdomain and support SSL |
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
| <!-- BEGIN Marginize --> | |
| <script type="text/javascript"> | |
| // Start timing the load speed of mar.gy | |
| _margyStartTime = new Number( new Date() ); | |
| (function() { | |
| var margy = document.createElement('script'); margy.type = 'text/javascript'; margy.async = true; | |
| margy.src = 'http://cdn.mar.gy/javascripts/widget/insert_widget.js'; |
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
| <!-- BEGIN Marginize --> | |
| <script type="text/javascript" id="Margy-Publisher-Widget"> | |
| // Start timing the load speed of mar.gy | |
| _margyStartTime = new Number( new Date() ); | |
| (function() { | |
| var margy = document.createElement('script'); margy.type = 'text/javascript'; margy.async = true; | |
| margy.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://cdn') + '.mar.gy/javascripts/widget/insert_widget.js'; |
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
| diff --git a/app/views/site/index.html.haml b/app/views/site/index.html.haml | |
| index 909646a..1028595 100644 | |
| --- a/app/views/site/index.html.haml | |
| +++ b/app/views/site/index.html.haml | |
| @@ -44,7 +44,7 @@ | |
| :javascript | |
| var addthis_config = { | |
| - ui_email_note: 'I thought you'd be interested in checking out www.Appswell.com. It's a place to view and share iPhone app ideas, and submit your own idea for a chance to see it made.' | |
| + ui_email_note: 'I thought you\'d be interested in checking out www.Appswell.com. It\'s a place to view and share iPhone app ideas, and submit your own idea for a chance to see it made.' |
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
| // Start timing the load speed of mar.gy | |
| _margyStartTime = new Number( new Date() ); | |
| (function() { | |
| var margy = document.createElement('script'); margy.type = 'text/javascript'; margy.async = true; | |
| margy.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://cdn') + '.mar.gy/javascripts/widget/insert_widget.js'; | |
| var s = document.getElementsByTagName('script')[0]; | |
| setTimeout( function() { s.parentNode.insertBefore(margy, s); }, 10 ); |
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
| var express = require('express'); | |
| var io = require('socket.io'); | |
| var app = express.createServer(); | |
| app.get('/', function(req, res){ | |
| res.send("<html><head><script src='/socket.io/socket.io.js'></script></head></html>"); | |
| }); | |
| app.listen(3000); |
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
| $ git diff github/citi_master..production/master |
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
| <html> | |
| <head> | |
| <title>Whatever Title You Want</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
| <script> | |
| // wait until the page is ready (i.e. loaded) before binding events | |
| $(function() { | |
| // whenever someone clicks on an <area> element... |
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
| class A < ActiveRecord::Base | |
| attr_accessible :data | |
| serialize :data, B | |
| validate :custom | |
| def custom | |
| errors.add :data, "whoopsies!" unless data.valid? | |
| end | |
| end |