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 UTIITIES---------------------####*/ | |
| /** | |
| * check for console. if it's not present, creates a console | |
| * object with methods that do nothing. Thus you avoid errors | |
| * in browsers without a console. | |
| */ | |
| if(typeof console === "undefined") { | |
| console = { | |
| debug: function() { }, | |
| dir: function() { }, |
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
| *Change Apache target:* | |
| gvim C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf | |
| *Bring up Wamp:* | |
| Start-Process "$psHome\powershell.exe" -Verb Runas -ArgumentList '-command "net stop w3svc"' | |
| &"C:\wamp\wampmanager.exe" | |
| *Open Browsers:* | |
| &"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://127.0.0.1" | |
| &"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" "http://127.0.0.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
| function convertToSubTask (taskID) { | |
| "use strict"; | |
| // Returns are required otherwise the rest of the if statements will attempt to execute. | |
| // A switch statement would be easier to read and maintain. | |
| // taskID must be a string. | |
| if (jQuery("#issue-to-subtask").length > 0) { | |
| window.open(jQuery("#issue-to-subtask").attr("href"), "_self"); | |
| return 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
| SMF Calendar: No plugins necessary. Just uses the table code. Easy to change and update. | |
| Two ways to manage it: | |
| 1. If the poster wants tight control... make a post, edit as things change, and comment when it's up to date. | |
| 2. If multiple people need to manage... make a post, quote the previous post when it's time to add an event, add in the event, and post. | |
| [b]Example:[/b] | |
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
| " Delete the first link on a line, leaving the link text untouched. | |
| s/<a href=".\{-\}">\(.\{-\}\)<\/a>/\1/i | |
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 fizzBuzz = function fizzBuzz () { | |
| "use strict"; | |
| var fizzArray = []; | |
| var fizzNumCheck = function fizzNumCheck (num) { | |
| var numString = ""; | |
| if (num % 3 === 0) { | |
| numString += "Fizz"; | |
| } |
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
| [user] | |
| name = Robert Pate | |
| email = --------------- | |
| [core] | |
| editor=vim | |
| [merge] | |
| tool = winmerge | |
| [mergetool "winmerge"] | |
| cmd = \"C:/Program Files (x86)/winmerge/winmergeu.exe\" \"$MERGED\" | |
| path = C:/Program Files (x86)/winmerge/winmergeu.exe |
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
| // Populates with some data from the API. | |
| ProductInfo productInfo = parseApiReply(apiResponse); | |
| // Need to update some empty fields after doing some logic on the data from the API. | |
| // I've been following the general guideline of always return a value so I write this: | |
| productInfo = addUserInfo(productInfo, userID); | |
| // But is it pointless to set visitorSerialInfo there since we can update it by reference in? | |
| // I could just do this: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace Change.This.To.Suit.Your.Application | |
| { | |
| class SecureLinkProvider : Sitecore.Links.LinkProvider | |
| { |