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
| # Create a Stratey | |
| class TestStrategy(bt.Strategy): | |
| params = ( | |
| ('maperiod', 20), | |
| ) | |
| def log(self, txt, optimization=False, dt=None): | |
| if optimization: | |
| return | |
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
| # Convert the .cer file into a .pem file: | |
| $ openssl x509 -in aps_development.cer -inform der -out PushChatCert.pem | |
| # Convert the private key’s .p12 file into a .pem file: | |
| $ openssl pkcs12 -nocerts -in PushChatKey.p12 -out PushChatKey.pem | |
| # Finally, combine the certificate and key into a single .pem file | |
| $ cat PushChatCert.pem PushChatKey.pem > ck.pem | |
| # At this point it’s a good idea to test whether the certificate works. |
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 angular */ | |
| /** | |
| * https://gist.github.com/mlynch/dd407b93ed288d499778 | |
| * | |
| * the HTML5 autofocus property can be finicky when it comes to dynamically | |
| * loaded templates and such with AngularJS. Use this simple directive to tame | |
| * this beast once and for all. | |
| * | |
| * Usage: | |
| * <input type="text" autofocus> |
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
| /** | |
| * TaskRepository class deals with task persistence | |
| */ | |
| function TaskRepository() { | |
| this.tasks = []; | |
| this.nextId = 1; | |
| } | |
| /** | |
| * Find a task by id | |
| * Param: id of the task to find |
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
| name = VoxPelli OAuth Test | |
| core = 7.x | |
| dependencies[] = oauth_common | |
| dependencies[] = http_client |