Updated: 2020-07-19
Compiled by: arthur@fl.am
We now use https://samsung-careers.co.il This list will be removed soon :)
// Adapted from an interview question that does the same with templates | |
// The goal was just to make the logic easier to understand with recent C++ features | |
// Don't use it in real-life LOL. | |
// | |
// It needs (1) a small wrapper to make the API cleaner (2) templates to work with any type... | |
// and in real-life you'll want more precision/speed/range/vectorization.......... | |
// | |
// To check it's indeed compile time: https://godbolt.org -std=c++17 | |
#include <iostream> |
def list_files_at_revision(path: str, revision: str) -> List[str]: | |
import subprocess | |
# Check if the path is a file or a directory | |
# We can use the `git cat-file` command to check if the path is a file | |
# The `-e` flag indicates that we want to check if the object exists |
""" | |
Generates a DXF file for a super-ellipsis table. | |
It's smooth, and less pointy than an elipsis. | |
Usage: | |
1. Edit in the code | |
- output_file: where the output file is saved | |
- dimension: the half width/height for the shape | |
- n: interpolation points | |
- pp: we'll generate a layer for each of those p-parameters. |
Updated: 2020-07-19
Compiled by: arthur@fl.am
We now use https://samsung-careers.co.il This list will be removed soon :)
library(RCurl) | |
library(stringr) | |
library(twitteR) | |
library(ggplot2) | |
library(plyr) | |
## Setup twitter credentials once (with an API app key) | |
# cred <- OAuthFactory$new(consumerKey="XXXXX", | |
# consumerSecret="XXXXX", | |
# requestURL="https://api.twitter.com/oauth/request_token", |
shinyServer(function(input, output) { | |
output$main_plot <- renderPlot({ | |
hist(faithful$eruptions, | |
probability = TRUE, | |
breaks = as.numeric(input$n_breaks), | |
xlab = "Duration (minutes)", | |
main = "Geyser eruption duration") |
shinyUI(bootstrapPage( | |
selectInput(inputId = "n_breaks", | |
label = "Number of bins in histogram (approximate):", | |
choices = c(10, 20, 35, 50), | |
selected = 20), | |
checkboxInput(inputId = "individual_obs", | |
label = strong("Show individual observations"), | |
value = FALSE), |
#' Random sleep | |
#' | |
#' Random exponential sleep + prints "sleeping". | |
#' | |
#' @param short Toogle shorter wait time | |
#' @references \url{https://twitter.com/ArthurFlam} | |
# @ArthurFlam | |
# random Sleep function | |
# Prints out |
## Arthur Flam | |
## @ArthurFlam | |
## Ecole Centrale Paris, ex-Dauphine | |
## arthur.flam@gmail.com | |
## Vérifier si quelqu'un est bien ingénieur CTI | |
library(RCurl) | |
library(rjson) | |
library(XML) |
## Arthur Flam | |
## @ArthurFlam | |
## Ecole Centrale Paris, ex-Dauphine | |
## Vérifier si quelqu'un vient bien de Centrale Paris | |
library(RCurl) | |
library(rjson) | |
library(XML) |