This is an additional theme for ggplot2
that generates an inverse black and white color scheme.
ggplot(mtcars, aes(wt, mpg)) + geom_point()
# Add theme_black()
ggplot(mtcars, aes(wt, mpg)) + geom_point(color = "white") + theme_black()
# taken from user Albert's answer on StackOverflow | |
# http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
# tested on Mac OS X 10.7.5 | |
global frontApp, frontAppName, windowTitle | |
set windowTitle to "" | |
tell application "System Events" | |
set frontApp to first application process whose frontmost is true | |
set frontAppName to name of frontApp |
var levelup = require('level') | |
var zlib = require('zlib') | |
var fs = require('fs') | |
var through = require('through') | |
//hot backup | |
db = levelup(...) | |
var backingup = false |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
#!/bin/bash | |
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport | |
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport |
function findValues(obj, key){ | |
return findValuesHelper(obj, key, []); | |
} | |
function findValuesHelper(obj, key, list) { | |
if (!obj) return list; | |
if (obj instanceof Array) { | |
for (var i in obj) { | |
list = list.concat(findValuesHelper(obj[i], key, [])); | |
} |
Shiny Shiny.shinyapp.$inputValues
acts like a store of state. I thought it would be fun to let vuejs
react to changes in Shiny
input values. This example is intentionally very simple to hopefully self-explain.
I have assembled vueR
package, like d3r
and reactR
, to offer helpers for vuejs
. For this example please install vueR
, or just add tags$script(src = "https://unpkg.com/vue@2.2.6")
to the tagList()
.
devtools::install_github("timelyportfolio/vueR")`