Skip to content

Instantly share code, notes, and snippets.

View cf's full-sized avatar
💭
monday 忙day

Carter Feldman cf

💭
monday 忙day
View GitHub Profile
@cf
cf / zeta
Created June 1, 2014 20:38
Zeta function, ζ(x) for all real integers!
//My implementation of Zeta function, will extend to all complex numbers later
function GammaReal(n)
{
var s=1;
for(var i=2;i<n;i++)
{
s*=i;
}
return s;
}
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>swagmaster flash</author>
<description>HTML pages that need putdata</description>
<sampleQuery><![CDATA[ select * from {table} where url='http://httpbin.org/get' ]]></sampleQuery>
<documentationURL></documentationURL>
</meta>
<bindings>
<select itemPath="" produces="XML">
@cf
cf / ccjsWebsite.c
Created March 14, 2015 21:35
CCJS Website Designer
/*
-- Imports from msvcrt --
strlen
calloc
memset
malloc
memcpy
free
printf
system
var WAVE={};
(function(){
function str16(x){return (x>15)?x.toString(16):"0"+x.toString(16);}
function shortToStr(x){return "%"+str16(x&0xff)+"%"+str16((x>>>8)&0xff);}
function intToStr(x){return "%"+str16(x&0xff)+"%"+str16((x>>>8)&0xff)+"%"+str16((x>>>16)&0xff)+"%"+str16((x>>>24)&0xff);}
WAVE.makeWavDecimal=function(channels,sampleFrequency)
{
var str="data:audio/x-wav,%52%49%46%46"+
intToStr(channels.length*2*channels[0].length+0x24)+
"%57%41%56%45%66%6D%74%20"+

Keybase proof

I hereby claim:

  • I am cf on github.
  • I am c4rter (https://keybase.io/c4rter) on keybase.
  • I have a public key ASDfxy9a8V9ZZhplbZYWABvu4MyH6bzFp2r6UTR78C2IAAo

To claim this, I am signing this object:

5bbe3fd98d5ff804dab3d806
5bbe3fc48d5ff804dab3d805
5bbe3ff28d5ff804dab3d807
@cf
cf / install_gitlab.sh
Created December 4, 2018 09:36
install_gitlab
#!/bin/sh
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
sudo apt-get -y update
sudo apt-get -y install ca-certificates curl openssh-server postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get -y update
sudo apt-get -y install gitlab-ce
@cf
cf / tablestore.d.ts
Created July 24, 2021 14:51
Typescript Definitions for TableStore
// Type definitions for tablestore 5.0
// Project: https://github.com/aliyun/aliyun-tablestore-nodejs-sdk
// Definitions by: Carter Jack Feldman <https://github.com/cf>
// TypeScript Version: 4.2
import Int64buf from 'int64-buffer';
import { Buffer } from 'buffer';
declare namespace TableStore {
@cf
cf / README.md
Created June 15, 2023 09:26
A Hackers Guide to Layer 2: Zero Merkle Trees from Scratch

Keybase proof

I hereby claim:

To claim this, I am signing this object: