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
{"lastUpload":"2021-11-02T20:29:36.176Z","extensionVersion":"v3.4.3"} |
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
/** | |
* LeetCode | |
* Two Sum (https://leetcode.com/problems/two-sum/) | |
* | |
* Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. | |
* | |
* You may assume that each input would have exactly one solution, and you may not use the same element twice. | |
* | |
* You can return the answer in any order. | |
* |
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
/** | |
This splits a dataset file in csv format into two files, | |
"training data file" and "testing data file," | |
at the same location as the original file, | |
using MLDataTable#randomSplit. | |
Put this in a new file and run it on terminal. | |
Example: | |
$ swift thisFile.swift originalFile.csv 0.8 5 |
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
FROM debian:buster-slim | |
ARG RUBY_VERSION=2.7.1-jemalloc | |
# RUN with pipe recommendation: https://github.com/hadolint/hadolint/wiki/DL4006 | |
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | |
RUN apt-get update -q \ | |
&& apt-get dist-upgrade --assume-yes \ | |
&& apt-get install --assume-yes -q --no-install-recommends \ | |
curl \ |
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
<?php | |
// src/Acme/TweetBundle/Controller/DefaultController.php | |
namespace Acme\TweetBundle\Controller; | |
use Symfony\Component\ClassLoader\UniversalClassLoader; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Themattharris\TmhOAuth; | |
use Acme\TweetBundle\Entity\SearchWord; | |
use Acme\TweetBundle\Entity\Makeover; | |
use Acme\TweetBundle\Form\Type\TweetSearchType; | |
use Symfony\Component\HttpFoundation\Request; |