Skip to content

Instantly share code, notes, and snippets.

View shlomif's full-sized avatar

Shlomi Fish shlomif

View GitHub Profile
@shlomif
shlomif / link-to-shlomif-site.md
Created January 12, 2021 16:32
linking-to-my-site
@shlomif
shlomif / index.html
Created December 18, 2020 20:54 — forked from tiffany352/index.html
Twitter archive browser
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Twitter Archive Browser</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<style>
@shlomif
shlomif / readme.md
Last active December 11, 2020 16:46
missile-vs-melee-take-three

NOTE

This repository now lives in a more permanent location.


«I have a nice idea for a next logical evolution of David vs. Goliath / Indiana Jones gun vs. swordsman scene // missile vs. melee (https://www.shlomifish.org/.../david_and_goliath.xhtml ) story structure.

https://en.wikipedia.org/wiki/Padm%C3%A9_Amidala (star wars i-iii) is in a corridor with obi-wan kenobi and his jedi mentor ( https://en.wikipedia.org/wiki/Qui-Gon_Jinn ) guarding her with light sabers. On the ends there are two armored but unarmed Klingons ( https://memory-alpha.fandom.com/wiki/Klingon (star-trek)) arriors who fight against a metric ton of "throwaway" lightsabered jedi warriors who rush from the middle to try to take them out of the equation somehow. The Klingons have immense strength, agility and use basic and advanced martial arts tactics: kicking the jedis in the crotch; poking their eyes, stabbing them with their own lightsabers, pushing them onto each othe

@shlomif
shlomif / fedora-blog-replies.md
Last active February 5, 2021 13:50
fedora-blog-reply-process
\\ Proposed PARI/GP slution for https://projecteuler.net/problem=483
\\ Based on https://oeis.org/A060014
\\ Contact: https://www.shlomifish.org/
T(n, k)={n!*polcoeff(sumdiv(k, i, moebius(k/i)*exp(sumdiv(i, j, x^j/j) + O(x*x^n))), n)}
Tlog(n, k)={log(0.000000000001+n!*polcoeff(sumdiv(k, i, moebius(k/i)*exp(sumdiv(i, j, x^j/j) + O(x*x^n))), n))}
a(n)=sum(k=1,n*n,k*T(n,k))
b(n)=sum(k=1,n*n,k*k*T(n,k))
for(n=1, 22,print(b(n)))
d(n,k,s)={t=k*k*exp(Tlog(n,k));s+=t;printp(" ",n," ",n*n," ",k," ",t," ",s);s}
#.rst:
# ECMExportSymbols
# ----------------
#
# This module provides the ``ecm_export_symbols`` function for providing
# versioned symbols within libraries.
#
# ::
#
# ecm_export_symbols(<target_name>
Licensed under the Creative Commons Attribution licence (CC-BY), either
version 4.0 or at your option, any later version. See:
https://creativecommons.org/licenses/by/4.0/
Author:Usmar A. Padow (amigojapan), contact: usmpadow@gmail.com
Written in 2017.
8 Basics of Programming
#include <iostream>
#include <vector>
using namespace std;
enum _tile_state
{
empty = 0,
X,
Y
};
#!/usr/bin/env perl
use v5.10;
use strict;
use warnings;
use utf8;
use Carp;
use Net::GitHub;
use List::Util qw/max/;
my $org = "dagolden";
@shlomif
shlomif / JSX.html
Last active September 26, 2015 12:38 — forked from anonymous/JSX.html
<script type="text/javascript">
var settid = "sitelocked";
var status2 = false;
var data = { "sitelocked":true, "officelocked":false, "paging":20 };
if(status2 === true){
console.log('ITS TRUE');