Session
- rename. Ctrl + b, $
- new window. Ctrl + b, c
| from slacker import Slacker | |
| # | |
| # https://api.slack.com/custom-integrations/legacy-tokens | |
| # | |
| token = "--- put api token here ---" | |
| slack = Slacker(token) | |
| # | |
| # Get users list |
| using System; | |
| using System.Linq; | |
| using QuantConnect.Indicators; | |
| using QuantConnect.Models; | |
| namespace QuantConnect.Algorithm.Examples | |
| { | |
| /// <summary> | |
| /// | |
| /// QuantConnect University: EMA + SMA Cross |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>BackgroundColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECww | |
| LjQ3ODI2MDg3IDAuMTQ1MTA0MzYgMC4xMTY4ODEyMSAwLjg1MDAwMDAyABABgALSEBES | |
| E1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVk |
| #!/usr/bin/env bash | |
| # | |
| # Bootstrap script for setting up a new OSX machine | |
| # | |
| # This should be idempotent so it can be run multiple times. | |
| # | |
| # Some apps don't have a cask and so still need to be installed by hand. These | |
| # include: | |
| # | |
| # - Twitter (app store) |
| # https://github.com/teampoltergeist/poltergeist/issues/419 | |
| class RandomController < ApplicationController | |
| before_filter :check_initialized | |
| require 'capybara/rails' | |
| require 'capybara/poltergeist' | |
| def check_initialized | |
| unless initialized? |
| # | |
| # only include once in the python notebook file | |
| # | |
| js = """ | |
| <script> | |
| function removeTabs($tabs, matchPharse) { | |
| $.each($tabs, function(index, element){ | |
| var links = $(element).find('li a'); |
| <!doctype html> | |
| <title>Gatecoin | Maintenance</title> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link href='https://gatecoin.com/public/css/googleFonts.css' rel='stylesheet' type='text/css'> | |
| <link rel="icon" href="https://gatecoin.com/public/img/favicon.ico" type="image/png"/> | |
| <!--ramen--> | |
| <link rel="dns-prefetch" href="https://cdn.ramen.is"> | |
| </head> |
| var wg sync.WaitGroup | |
| numWorkers := 10 | |
| inputChannel := make(chan []string) | |
| for i := 0; i < numWorkers; i++ { | |
| wg.Add(1) | |
| go func() { | |
| for data := range inputChannel { | |
| // do work | |
| } |
| module['exports'] = function echoHttp (hook) { | |
| hook.debug("Debug messages are sent to the debug console"); | |
| hook.debug(hook.params); | |
| hook.debug(hook.req.path); | |
| hook.debug(hook.req.method); | |