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 Hmm = (function() | |
| { //A snippet/library to find records in table-like JS arrays | |
| function getNamedValue( o , name ) | |
| { //Name can have dots, 'car.tire.brand.name' should get the expected | |
| var parts = name.split("."); | |
| while( parts.length && o ){ | |
| o = o[parts.shift()]; | |
| } | |
| return o; |
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 merge(object, boltOn) { | |
| //Simply merge the properties of boltOn into object | |
| for(var property in boltOn) | |
| if(boltOn.hasOwnProperty(property)) | |
| object[property] = boltOn[property]; | |
| return object; | |
| } | |
| function compose( /*Constructor1, Constructor2, ..*/ ) { | |
| //Keep a closure reference for later |
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> | |
| <meta charset="utf-8"/> | |
| <title>test_cycle #jsbench #jsperf</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
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
| Option Explicit | |
| Const SOUND_FILE_LOCATION As String = "C:\Users\Demuyt\Documents\REMINDER.WAV" | |
| Const ACTION_CUTOFF_IN_SECONDS As Integer = 1600 | |
| Sub setMeetingReminderSounds() | |
| Dim reminder As reminder | |
| Dim appointment As AppointmentItem | |
| Dim secondsLeft As Long |
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
| CoordMode, Mouse, Screen | |
| MouseGetPos, CurrentX, CurrentY | |
| Loop { | |
| Sleep, 60000 | |
| LastX := CurrentX | |
| LastY := CurrentY | |
| MouseGetPos, CurrentX, CurrentY | |
| If (CurrentX = LastX and CurrentY = LastY) { |
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
| Get-ADUser -filter 'Name -like "*Prath*"' -Properties AccountExpirationDate | Select sAMAccountName, UserPrincipalName, distinguishedName, AccountExpirationDate |
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
| Option Explicit | |
| Public Sub processMessages() | |
| Dim objOL As Outlook.Application | |
| Dim currentExplorer As Explorer | |
| Dim Selection As Selection | |
| Dim obj As Object | |
| Dim dict As Object | |
| Set objOL = Outlook.Application | |
| Set currentExplorer = objOL.ActiveExplorer |
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 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
| Statement Date<input id="statementDate" type="date"></input> | |
| Statement Start<input id="statementStart" type="number"></input> | |
| <button id="go" >Go!</button> | |
| <textarea id="mt940" cols="120" rows="50"> | |
| :20:ACME2203100000001 | |
| :28C:6789/1 | |
| :60F:C220310USD0,00 | |
| :61:2203100310C2000,00NTRF00000000//00000000 | |
| 0 |
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 animateFireBlaze(x1, y1, x2, y2) { | |
| const canvas = document.createElement("canvas"); | |
| canvas.width = x2 - x1; | |
| canvas.height = y2 - y1; | |
| document.body.appendChild(canvas); | |
| const ctx = canvas.getContext("2d"); | |
| function drawFlame() { | |
| ctx.clearRect(0, 0, canvas.width, canvas.height); |