- ssskdkdkdkd
- kakakakaka
sklaks
tap "homebrew/cask" | |
tap "homebrew/cask-versions" | |
################ | |
# General Use | |
################ | |
tap "github/gh" | |
brew "fish" | |
brew "git" |
tap "homebrew/cask" | |
tap "homebrew/cask-versions" | |
################ | |
# General Use | |
################ | |
tap "github/gh" | |
brew "fish" | |
brew "httpie" |
sklaks
import { runBenchmarks, bench } from "https://deno.land/std/testing/bench.ts"; | |
// 1119. Remove Vowels from a String | |
// https://leetcode.com/problems/remove-vowels-from-a-string/ | |
function removeVowelsByLoop(S: string): string { | |
let removed = ""; | |
for (const char of S) { | |
switch (char) { | |
case "a": |
const fs = require("fs"); | |
const path = require("path"); | |
const fileNames = fs.readdirSync(path.resolve(__dirname, "./solutions")); | |
const testFiles = fileNames.filter(fileName => fileName.endsWith("_test.ts")); | |
for (const fileName of testFiles) { | |
// const fileName = testFiles[Math.floor(Math.random() * testFiles.length)]; | |
// const fileName = "search_a2d_matrix2_test.ts"; |
import * as React from "react"; | |
import * as ReactDOMServer from "react-dom/server"; | |
function SomeComponent() { | |
return React.createElement(StyledDiv, null, "Hello!"); | |
} | |
const StyledDiv = styled.div` | |
color: red; | |
`; |
export default class BinaryHeap<T> { | |
constructor(orderComparator: OrderComparator<T>) { | |
this.orderComparator = orderComparator; | |
this.values = []; | |
} | |
private orderComparator: OrderComparator<T>; | |
private values: T[]; | |
get length(): number { |
class A extends React.Component { | |
constructor(props, context) { | |
super(props, context); | |
this.globalCallbackName = 'kdjlwkqe'; | |
this.ref = React.createRef(); | |
} | |
componentDidMount() { | |
global[this.globalCallbackName] = () => new google.maps.Map(this.ref.current, { |
import 'dart:async'; | |
import 'package:firebase_messaging/firebase_messaging.dart'; | |
import 'package:meta/meta.dart'; | |
class MessageTray { | |
MessageTray({@required FirebaseMessaging messaging}) | |
: assert(messaging != null), | |
_onMessage = StreamController(), | |
_onResume = StreamController(), | |
_onLaunch = StreamController() { |