(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
from functools import partial | |
import multiprocessing | |
import os | |
import socket | |
import sys | |
from sklearn.preprocessing import StandardScaler | |
import numpy as np | |
import pandas as pd |
#!/bin/bash | |
vm="OSX" | |
VBoxManage modifyvm $vm --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff | |
VBoxManage setextradata $vm "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" | |
VBoxManage setextradata $vm "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" | |
VBoxManage setextradata $vm "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Mac-F2238BAE" | |
VBoxManage setextradata $vm "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" | |
VBoxManage setextradata $vm "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 |
<?php | |
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
function postToMedium($data=array()) { | |
$user_id = "XXXX"; | |
$accessToken = "XXXX"; | |
let s:endpoint = 'http://services.gingersoftware.com/Ginger/correct/json/GingerTheText' | |
let s:apikey = '6ae0c3a0-afdc-4532-a810-82ded0054236' | |
function! s:ginger(text) | |
let res = webapi#json#decode(webapi#http#get(s:endpoint, { | |
\ 'lang': 'US', | |
\ 'clientVersion': '2.0', | |
\ 'apiKey': s:apikey, | |
\ 'text': a:text}).content) | |
let i = 0 | |
let correct = '' |
// Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
(function poll(){ | |
$.ajax({ url: "server", success: function(data){ | |
//Update your dashboard gauge | |
salesGauge.setValue(data.value); | |
}, dataType: "json", complete: poll, timeout: 30000 }); | |
})(); |