[ Launch: d3 bar chart ] 89f8432296edc1aeb9d4 by michaelowens
This file contains 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
<script> | |
$(function () { | |
var $controlBar = $('.control-bar'), | |
isFloating, | |
controlBarTimer; | |
controlBarTimer = setInterval(function () { | |
if (!$controlBar.attr('style') && isFloating) { | |
$controlBar.removeClass('floating'); | |
isFloating = false; |
This file contains 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
# | |
# Install node.js which has npm bundled | |
# | |
#Build Dependencies | |
sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev | |
#Install Node.js & NPM |
This file contains 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
use Amnesia | |
defdatabase XikBot.Database do | |
deftable Timer, [{ :id, autoincrement }, :cmd, :interval, :last_run], type: :bag do | |
@type t :: %Timer{id: non_neg_integer, cmd: String.t, interval: integer, last_run: integer} | |
end | |
end |
This file contains 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
defmodule Plugin do | |
alias Plugin | |
use XikBot.Database | |
def everyX(name, ms, cb) do | |
IO.puts "--- everyX ---" | |
Amnesia.transaction do | |
selection = Timer.where cmd == name |
I hereby claim:
- I am michaelowens on github.
- I am michaelowens (https://keybase.io/michaelowens) on keybase.
- I have a public key whose fingerprint is B871 D93E 8293 5F96 D6BE EF7E 4D0F 2E4F FBE4 5D8C
To claim this, I am signing this object:
This file contains 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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var Vue = require('vue'); | |
// e.g. logged-in.js | |
var loggedIn /*module.exports*/ = function (user) { | |
// check if user is logged in | |
return true; | |
} |
I hereby claim:
- I am michaelowens on github.
- I am michaelowens (https://keybase.io/michaelowens) on keybase.
- I have a public key whose fingerprint is 47A3 E05E F7BF CDC8 B79B 3D9F AF4C BFB3 A9BC 87FA
To claim this, I am signing this object:
This file contains 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
import BaseModule from './base' | |
import Commands from '../models/command' | |
import Database from '../models/database' | |
import Log from '../models/log' | |
import Chat from '../models/chat' | |
import {RateLimiter} from 'limiter' | |
import seedrandom from 'seedrandom' | |
import {ModuleSetting} from '../models/module' | |
export const SETTINGS = { |
Chat commands for Twitch.
- First install FrankerFaceZ and TamperMonkey plugins for chrome
- Then go to https://gist.githubusercontent.com/michaelowens/2eb554f8eba0e89d2ea24e67ebc7ae96/raw/twitchcommands.user.js
- Click on the install button
- Refresh Twitch and you can start using your new chat commands
OlderNewer