- spdy web compiler swc is rust port of babel and closure compiler.
- ratel High performance JavaScript to JavaScript compiler with a Rust core
- RESS Rusty EcmaScript Scanner
- RESSA Rust EcmaScript Syntax Analyzer
- rjs An implementation of ECMAScript 5.1, in Rust. Work in progress.
- espadon EcmaScript parser writter in Rust (WIP)
- tyrion EcmaScript 6 parser written in Rust.
- esprit A JavaScript parser written in Rust
- j8t
You will need nightly Rust
- Install Rust, se rustup.sh curl -sSf https://static.rust-lang.org/rustup.sh | sh
- Update installaion with: rustup self update rustup self update-data
- Install nightly Rust: rustup toolchain install nightly
- Default to nightly: rustup default nightly
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
import { debuglog, format } from "util"; | |
import { Console } from "console"; | |
type LoggerOverrideFunction = (...args: any) => void; | |
type InjectedConsole = { | |
info: LoggerOverrideFunction; | |
log: LoggerOverrideFunction; | |
warn: LoggerOverrideFunction; | |
}; |
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
import * as fs from 'fs'; | |
import * as path from 'path'; | |
interface CPUMeasurements { | |
average_cpu_usage: number; | |
max_cpu_usage: number; | |
min_cpu_usage: number; | |
} | |
interface MemoryMeasurements { |
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
# 10 Largest Files | |
find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {} |
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
/** | |
// using built-in functions | |
*/ | |
function findMaxStockProfit(arr1) { | |
if (arr1.length < 2) { | |
return 0; | |
} | |
let arr1Min = Math.min(...arr1); | |
let subset = arr1.slice(arr1.indexOf(arr1Min)); |
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
[["1990",[6,159,0.001,30,99,0.002,45,-109,0.000,42,115,0.007,4,-54,0.000,-16,-67,0.014,21,-103,0.006,-20,-64,0.004,-40,-69,0.001,32,64,0.001,28,67,0.006,8,22,0.000,-15,133,0.000,-16,20,0.000,55,42,0.006,32,-81,0.010,31,36,0.067,9,80,0.016,42,-91,0.006,19,54,0.001,21,111,0.163,-3,-51,0.001,33,119,0.150,65,21,0.002,46,49,0.015,43,77,0.043,45,130,0.018,4,119,0.006,22,59,0.002,9,-82,0.003,46,-60,0.002,-14,15,0.006,-15,-76,0.001,57,15,0.007,52,9,0.056,10,120,0.004,24,87,0.134,0,-51,0.005,-5,123,0.013,-24,-53,0.010,-28,-58,0.015,43,0,0.019,24,70,0.023,-9,33,0.012,20,73,0.037,13,104,0.034,43,41,0.012,23,78,0.095,20,-72,0.001,38,-4,0.006,0,-77,0.016,-9,-35,0.056,25,109,0.034,-13,34,0.013,61,18,0.001,58,40,0.002,34,50,0.027,49,88,0.000,48,-99,0.001,-42,176,0.002,20,86,0.156,-18,30,0.007,53,44,0.006,29,18,0.001,5,16,0.003,49,-74,0.000,48,131,0.006,14,121,0.210,63,19,0.001,40,54,0.001,36,57,0.005,16,52,0.000,50,128,0.010,39,30,0.021,54,12,0.006,16,-61,0.011,27,80,0.196,29,101,0.001,14,78,0.067,7,13,0.003,41,125,0.026,-1 |
- Clang & LLVM have been installed on $PATH.
- if not, see CLANG LLVM: Getting Started
clang hello-world.c
NewerOlder