Script bash rapide pour détecter les paquets npm compromis par l'attaque supply-chain Shai-Hulud 2.0 (novembre 2024).
# Rendre le script exécutable
chmod +x check-shai-hulud-fast.shThe repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare [email protected]:usi-systems/easytrace.git
Inspired by "Parsing CSS with Parsec".
Just quick notes and code that you can play with in REPL.
By @kachayev
There was a [great article][1] about how react implements it's virtual DOM. There are some really interesting ideas in there but they are deeply buried in the implementation of the React framework.
However, it's possible to implement just the virtual DOM and diff algorithm on it's own as a set of independent modules.
| (ns example.errors) | |
| (defn clean-address [params] | |
| "Ensure (params :address) is present" | |
| (if (empty? (params :address)) | |
| [nil "Please enter your address"] | |
| [params nil])) | |
| (defn clean-email [params] | |
| "Ensure (params :email) matches *@*.*" |
Using HockeySDK as an example
ARCH=armv7
FRAMEWORK_DIRECTORY="${HOME}/Downloads/HockeySDK-iOS-3/HockeySDK.embeddedframework"
FRAMEWORK_NAME=$(basename `echo "${FRAMEWORK_DIRECTORY}"/*.framework` .framework)| (ns overtone-clj-toys.binaural | |
| (:use [overtone.live])) | |
| ;; | |
| ;; Binaural Beat Synthesis: | |
| ;; Generates binaural beats given the provided carrier and desired | |
| ;; frequency. Brown noise is used to soften the background and | |
| ;; block out outside noise. | |
| ;; freq effect |
| # Usage: show <local-port> <subdomain> | |
| function show() { | |
| DOMAIN=".webhostology.com" | |
| REMOTE="$2$DOMAIN" | |
| ssh -tR 8080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:8080 localhost" | |
| } |
| /* Selective / dynamic UI orientation | |
| Simply add this method (updateOrientation) to your class and call it in: | |
| -(void) viewWillAppear:(BOOL)animated | |
| { | |
| [super viewWillAppear:animated]; | |
| [self updateOrientation]; | |
| } |