- paste.sh · encrypted pastebin
- Layouts | Docs
- Background information - Futures Explained in 200 Lines of Rust
- Intro | Putting the "You" in CPU
- some-assembly-required/guide/cpu/instruction-cycle.md at main · hackclub/some-assembly-required
- Compiler Explorer
- rust-blog/posts/common-rust-lifetime-misconceptions.md at master · pretzelhammer/rust-blog
- Meet Safe and Unsafe - The Rustonomicon
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
module Main where | |
import Data.List (find, groupBy, intercalate, nub, sort, sortBy) | |
import Data.Ord | |
import Debug.Trace | |
-- Solution to | |
-- https://leetcode.com/problems/largest-number/description/ | |
largest :: [Int] -> String | |
largest = |
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
function paste() | |
{ | |
if [[ $# -gt 1 ]]; then | |
echo "USAGE: paste [File]" | |
return 1 | |
fi | |
file=$1 | |
# if no argument passed... |
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
// Harshit Joshi, 22-04-2022 | |
// MIT license | |
// unsafe dont use .... any arg can be placed in the urls file and it wont be filtered | |
import cp from "child_process"; | |
import fs from "fs"; | |
let COMMAND = `start firefox `; | |
function readUrls(file) { |
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
# mv ./run.sh /usr/bin/run | |
# https://stackoverflow.com/questions/18568706/check-number-of-arguments-passed-to-a-bash-script | |
if [ "$#" -ne 1 ]; then | |
echo "Illegal number of parameters" >&2; | |
exit 2; | |
fi | |
function getBaseName () { | |
echo -e "$1" | cut -d "." -f 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
curl "http://cheat.sh/$*" | |
# doesnt work if you use $@ instead of $* | |
# because $* doesnt preserve spaces while $@ does | |
# https://www.shellscript.sh/variables2.html | |
# The first set of variables we will look at are $0 .. $9 and $#. | |
# The variable $0 is the basename of the program as it was called. | |
# $1 .. $9 are the first 9 additional parameters the script was called with. |