Skip to content

Instantly share code, notes, and snippets.

@m3m0r7
m3m0r7 / CrazyCalculator.php
Last active February 7, 2024 08:47
A calculator can calculates a sqrt function, factorial, power and usage big number calculation from user input that is written in PHP
<?php
function dt($v)
{
foreach ($v as $t) {
echo $t->value();
}
echo "\n";
}
@MidSpike
MidSpike / readme.md
Last active February 5, 2024 18:09
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
const { readdir } = require('fs').promises
const readdirRecursiveEnt = async (dir, ent) => {
const path = `${dir}/${ent.name}`
if (ent.isFile()) return path
if (ent.isDirectory()) {
return await readdirRecursive(path)
}
console.log(`${ent.name} is not a file or directory`)
return null
@elzup
elzup / 0->100 arrow functions
Last active May 22, 2023 17:02
Goal: 100 Arrow functions, Anonymous function, lambda, closure example.
...
checks
// no args
// block
// implicit parameter
// assign
@Gnzlt
Gnzlt / gourcevideo.sh
Created March 6, 2019 13:25
Gource video export command
#!/bin/bash
gource \
-s .03 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
@dmail
dmail / url.js
Last active January 5, 2024 11:09
URL parts naming. Inspired from web browsers API (new URL(), window.location) and rfc3986.
/*
href
┌────────────────────────────────────────┴──────────────────────────────────────────────┐
origin │
┌────────────┴──────────────┐ │
│ authority │
│ ┌───────────────┴───────────────────────────┐ │
│ │ host resource
│ │ ┌──────────┴─────────────────┐ ┌────────────┴───────────┬───────┐
│ │ hostname │ pathname │ │
@sifue
sifue / 無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ.md
Last active May 2, 2024 11:24
無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ
@shinout
shinout / cureapp_quiz.js
Last active March 16, 2017 12:22
次のコードは警告が出ます。何行目が原因?#cureapp_quiz をつけてtweetしよう!
1 import React from 'react'
2 import { AppRegistry, StyleSheet, Text, View } from 'react-native'
3 const styles = StyleSheet.create({
4 container: {
5 flex: 1,
6 justifyContent: 'center',
7 alignItems: 'center',
8 color: '#000000',
9 backgroundColor: '#F5FCFF',
10 },
@srdjan
srdjan / 100+ different counter apps...
Last active February 19, 2024 22:41
100+ different js counter apps...
100+ different js counter apps...