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
| urls = ['angry', 'sad', 'meh', 'like', 'superlike'] | |
| i = -1 | |
| foo = -> | |
| i++ | |
| urls[i] | |
| a = '--reactreaction-- dsfsfd --reactreaction-- dsfsf --reactreaction-- sdfsdfdsf --reactreaction-- sdfsdfsf --reactreaction--' | |
| a.replace /--reactreaction--/g, foo # => 'angry dsfsfd sad dsfsf meh sdfsdfdsf like sdfsdfsf superlike' |
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
| urls = ['angry', 'sad', 'meh', 'like', 'superlike'] | |
| i = -1 | |
| foo = -> | |
| i++ | |
| urls[i] | |
| a = '--reactreaction-- dsfsfd --reactreaction-- dsfsf --reactreaction-- sdfsdfdsf --reactreaction-- sdfsdfsf --reactreaction--'.replace /--reactreaction--/g, foo # => 'angry dsfsfd sad dsfsf meh sdfsdfdsf like sdfsdfsf superlike' |
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
| console.log('test') |
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 anywhereInterval; | |
| anywhereInterval = setInterval(function() { | |
| var anywhere; | |
| if ((anywhere = window.AutopilotAnywhere) && window.AutopilotAnywhere.associate)) { | |
| clearInterval(anywhereInterval); | |
| anywhere.associate('[email protected]', function(err) { | |
| if (err) { | |
| console.log("Error:", err); |
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
| <apex:page standardController="Puppy__c" extensions="PuppyListController" sidebar="false"> | |
| <h><strong><center>New Puppy</center></strong></h> | |
| <apex:form > | |
| <apex:pageBlock > | |
| <apex:pageBlockSection > | |
| Name <apex:inputField label="" required="true" value="{! puppyRecord.name }"/> | |
| </apex:pageBlockSection> | |
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
| global class BatchCleanContacts implements | |
| Database.Batchable<sObject> { | |
| global final String query; | |
| global Integer counter = 0; | |
| global BatchCleanContacts(String q) { | |
| query = q; | |
| } | |
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
| /** | |
| * This class contains unit tests for validating the behavior of Apex classes | |
| * and triggers. | |
| * | |
| * Unit tests are class methods that verify whether a particular piece | |
| * of code is working properly. Unit test methods take no arguments, | |
| * commit no data to the database, and are flagged with the testMethod | |
| * keyword in the method definition. | |
| * | |
| * All test methods in an organization are executed whenever Apex code is deployed |
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 CreditCard | |
| def initialize(number) | |
| @credit_card = number.to_s | |
| unless @credit_card.length == 16 | |
| raise ArgumentError.new("Monopoly money not accepted. Try again.") | |
| end | |
| end | |
| def check_card | |
| array = @credit_card.split(//) |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
| <link rel="stylesheet" href="main.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
| </head> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css"> | |
| <link rel="stylesheet" href="main.css"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800"> | |
| <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900"> | |
| <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css"> | |
| </head> |
NewerOlder