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
| /** | |
| * Defines an x,y coordinate | |
| * @param {float} x coordinate | |
| * @param {float} y coordinate | |
| */ | |
| function Point (x, y) { | |
| this.x = x; | |
| this.y = y; | |
| } |
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
| { | |
| /** | |
| * [roundedRect description] | |
| * @param {Canvas Context} ctx Canvas Context | |
| * @param {int} x X Coordinate | |
| * @param {int} y Y Coordinate | |
| * @param {int} width Width of rectangle | |
| * @param {int} height Height of rectangle | |
| * @param {radius} radius Radius of rectangle corners |
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
| # Reset iis | |
| iisreset | |
| # List current sites | |
| %systemroot%\system32\inetsrv\appcmd list app | |
| # Change site name | |
| %systemroot%\system32\inetsrv\appcmd set app "Default Web Site/OldApplicationName" -path:/NewApplicationName |
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
| // Array holding our assignments | |
| var assignments = []; | |
| // Get raw array of assignments (a tags) (raw assignment elements) | |
| var rawAssignmentEls = document.getElementById('vista_main_frameset') | |
| .querySelector('frame[name="APPLICATION_FRAME"]') | |
| .contentWindow.document.getElementById('vista_frameset') | |
| .querySelector('frame[name="TOOLFRAME"]') | |
| .contentWindow.document.getElementById('toolframeset') | |
| .querySelector('frame[name="RIGHTTOOLFRAME"]') |
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
| # Import all modules available on the system | |
| Get-Module -ListAvailable | Import-Module | |
| # Sort directory contents | |
| Get-ChildItem -path . | sort-object lastwritetime -descending | |
| # Start a new powershell prompt and give it a command to execute | |
| Start-Process powershell "-noexit -command `"cd $place`"" | |
| # Run a cmd command and capture it's output |
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
| // Find the inner width of the Window | |
| document.documentElement.clientWidth |
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
| // Set jqGrid Data | |
| $(gridEl).jqGrid('setGridParam', {data: gridData}); | |
| // Reload grid | |
| $(gridEl).trigger('reloadGrid'); | |
| // Delete row | |
| $(gridEl).jqGrid('delRowData', rowId); | |
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
| # Indent multiple lines | |
| > | |
| # Indent multiple lines | |
| 5>> | |
| http://stackoverflow.com/questions/235839/how-do-i-indent-multiple-lines-quickly-in-vi | |
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
| // $http examples | |
| $http({method: 'GET', url: '/someUrl'}) | |
| .success(function (data, status, headers, config) { | |
| }) | |
| .error(function (data, status, headers, config) { | |
| }); | |
| // $http.get, $http.head,$http.post,$http.put,$http.delete,$http.jsonp,$http.patch | |
| $http.post('images/update', postData) |
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
| # View all AppFabric CmdLets | |
| Get-Command –module ApplicationServer | |
| # Create help documentation for all AppFabric CmdLets | |
| Get-Command –module ApplicationServer | Sort-Object Verb,Noun | Get-Help -detailed > C:\temp\HelpTopicsSortedNounVerb.txt |
OlderNewer