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
library(arrow) | |
library(dplyr) | |
library(dataconnect) | |
dc <- dataconnect::init(api_key) | |
datasets <- dc$list(study = "12345") | |
for (ds in datasets) { | |
print(cat("Dataset: ", ds$name)) | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am isterin on github. | |
* I am isterin (https://keybase.io/isterin) on keybase. | |
* I have a public key ASBeeNpLPjr5HN39W8poOT69YgYgraigHy1SRqG32UZ_6go | |
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
class ProxiedHttpRequest(val req:HttpRequest) { | |
lazy val proxyServer = InetAddress.getByName(“some.proxy.com”) | |
} | |
object ProxiedHttpRequest { | |
implicit def delegateToOriginalHttpRequest( | |
r: ProxiedHttpRequest):HttpRequest = r.req | |
} | |
object Application { | |
def proxyRequest(req:ProxiedHttpRequest) { | |
val where = req.proxyServer |
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
object Application { | |
def proxyRequest(req:ProxiedHttpRequest) { | |
val where = req.proxyServer | |
/* | |
Here I need access to original request being wrapped to get the headers This is ugly and I’d prefer to access it as I would a regular HttpRequest req.headers() | |
*/ | |
val headers = req.req.headers() | |
} | |
} |
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
class ProxiedHttpRequest(val req:HttpRequest) { | |
lazy val proxyServer = InetAddress.getByName(“some.proxy.com”) | |
} |
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
class ProxiedHttpRequest(val req:HttpRequest) { | |
lazy val proxyServer = InetAddress.getByName(“some.proxy.com”) | |
} | |
object ProxiedHttpRequest { | |
implicit def delegateToOriginalHttpRequest( | |
r: ProxiedHttpRequest):HttpRequest = r.req | |
} | |
object Application { | |
def proxyRequest(req:ProxiedHttpRequest) { | |
val where = req.proxyServer |
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
<%= form_for @changeset, @action, fn f -> %> | |
<%= for {[id, name], ae} <- Enum.group_by(f.data.appentries, &([&1.sqmentry.sqmgroup.id, &1.sqmentry.sqmgroup.name])) do %> | |
<div>Group: <%= name %></div> | |
# Here I have to iterate the hierarchy | |
<%= inputs_for f, :appentries, fn e -> %> | |
<%= inputs_for e, :sqmentry, fn s -> %> | |
<%= inputs_for s, :sqmgroup, fn g -> %> | |
<div> | |
# input field goes here for (e, :status) | |
</div> |
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
const playlist = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
let N = process.argv[2] || 10; | |
function shuffle(a) { | |
const newA = a.slice(); // Copy array | |
for (let i = newA.length; i; i--) { | |
let j = Math.floor(Math.random() * i); | |
[newA[i - 1], newA[j]] = [newA[j], newA[i - 1]]; | |
} |
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
class ProxiedHttpRequest(val req:HttpRequest) { | |
lazy val proxyServer = InetAddress.getByName(“some.proxy.com”) | |
} |
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
find . -name "*.txt" | xargs egrep -il "last\\s+report" | xargs egrep -il "From:\s+Tom" |
NewerOlder