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
| module.exports = { push, pop, heap } | |
| function push(heap, el, cmp = _cmp) { | |
| let i = heap.length; | |
| heap.push(el); | |
| while (i > 0) { | |
| const parent = Math.ceil(i / 2) - 1; | |
| if (cmp(heap[i], heap[parent]) > 0) { | |
| break; | |
| } |
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
| from livereload import Server | |
| from web_app import application | |
| if __name__ == "__main__": | |
| server = Server(application) | |
| server.watch(".") | |
| server.serve(8080) |
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/scripts/format/swf/SWFRoot.hx b/scripts/format/swf/SWFRoot.hx | |
| index 626f59d..33ecf86 100644 | |
| --- a/scripts/format/swf/SWFRoot.hx | |
| +++ b/scripts/format/swf/SWFRoot.hx | |
| @@ -13,6 +13,8 @@ import flash.utils.ByteArray; | |
| import flash.utils.CompressionAlgorithm; | |
| import flash.errors.Error; | |
| import format.swf.tags.TagSymbolClass; | |
| +import format.swf.tags.TagPlaceObject; | |
| +import format.swf.tags.TagDefineSprite; |
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 entities = require('@jetbrains/youtrack-scripting-api/entities'); | |
| var http = require('@jetbrains/youtrack-scripting-api/http'); | |
| var slackIdByUsername = {} | |
| slackIdByUsername['@person1'] = '{person1_slack_id}'; | |
| slackIdByUsername['@person2'] = '{person2_slack_id}'; | |
| slackIdByUsername['@person3'] = '{person3_slack_id}'; | |
| var webhookUrl = 'https://{slack_webhook_url}'; |
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
| package { | |
| public class InspectorIssue {} | |
| } | |
| class ClassA { | |
| public function ClassA(argument) {} | |
| } | |
| class ClassB extends ClassA { |
If you are using vagrant, you probably-statistically are using git. Make sure you have its binary folder on your path, because that path contains 'ssh.exe'.
Now, modify C:\vagrant\vagrant\embedded\lib\ruby\gems\1.9.1\gems\vagrant-1.0.3\lib\vagrant\ssh.rb to comment out the faulty Windows check and add a real SSH check:
# if Util::Platform.windows?
# raise Errors::SSHUnavailableWindows, :host => ssh_info[:host],
# :port => ssh_info[:port],
# :username => ssh_info[:username],
# :key_path => ssh_info[:private_key_path]This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: aria2 | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Should-Start: $network | |
| # Should-Stop: $network | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: aria2c init script. |
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
| @echo off | |
| setlocal | |
| set "Reg32=%SystemRoot%\System32\reg.exe" | |
| if not "%ProgramFiles(x86)%"=="" "Reg32=%SystemRoot%\SysWOW64\reg.exe" | |
| for /F "usebackq skip=1 tokens=1,2*" %%T in (`%Reg32% query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "{374DE290-123F-4565-9164-39C4925E467B}" 2^>nul`) do ( | |
| if /I "%%T"=="{374DE290-123F-4565-9164-39C4925E467B}" ( | |
| set "DownloadShellFolder=%%V" | |
| goto GetDownloadDirectory |