I hereby claim:
- I am timgluz on github.
- I am timosulg (https://keybase.io/timosulg) on keybase.
- I have a public key whose fingerprint is DA7D CBED 148B 937D A940 6D8E 3BC3 08EA 473B 5C8C
To claim this, I am signing this object:
| colorscheme 256-grayvim | |
| set rtp+=/usr/bin/fzf | |
| "set rtp+=/usr/local/opt/fzf | |
| "VIM user interface | |
| syntax on | |
| filetype plugin indent on | |
| autocmd BufNewFile,BufReadPost *.cljx setfiletype clojure |
| use std::fmt::Debug; | |
| use std::str::FromStr; | |
| fn main() { | |
| let row = read_vector::<u64>(); | |
| let n = row[0] as usize; | |
| let k = row[1]; | |
| let items = read_items(n); | |
| let knapsack = Knapsack::new(k, items); |
| #!/bin/bash | |
| # store the current dir | |
| CUR_DIR=$(pwd) | |
| VIM_DIR="${HOME}/.vim/pack/timosulg/start" | |
| # Let the person running the script know what's going on. | |
| echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
| cd $VIM_DIR |
| colorscheme default | |
| set runtimepath^=~/.vim/bundle/ctrlp.vim | |
| set rtp+=/usr/local/opt/fzf | |
| "VIM user interface | |
| syntax on | |
| filetype plugin indent on | |
| autocmd BufNewFile,BufReadPost *.cljx setfiletype clojure |
| name: Blank snippet | |
| description: Create a new snippet from a blank template. | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#run").click(() => tryCatch(run)); | |
| function supported() { | |
| try { |
| //use std::error::Error; | |
| use std::fs::File; | |
| use std::path::Path; | |
| //TODO: reseacrc: will it be bottleneck, or BufferedWriter | |
| use std::io::{Write, Read}; | |
| use std::collections::{HashMap, HashSet}; | |
| use serde::{Deserialize, Serialize}; | |
| use rmp_serde::{Deserializer, Serializer}; |
| /// implemention of http://groups.csail.mit.edu/graphics/classes/6.837/F98/Lecture6/circle.html | |
| use std::fs::File; | |
| use std::path::Path; | |
| use image::{self, GenericImage, ImageBuffer, Pixel, Rgba}; | |
| struct Point { | |
| x: u32, | |
| y: u32 |
| // Calculate A to the power P. | |
| Float: RaiseToPower(Float: A, Integer: P) | |
| <Use the first fact to quickly calculate A, A2, A4, A8, and so on | |
| until you get to a value AN where (N + 1 > P) > | |
| <Use those powers of A and the second fact to calculate AP> | |
| Return AP | |
| End RaiseToPower | |
| That's fewer multiplications than simply multiplying 7 × 7 × 7 × 7 × 7 × 7, but it's a small difference in this example. |
I hereby claim:
To claim this, I am signing this object:
| (def nippy-transcoder (make-transcoder :nippy)) | |
| (deftest test-nippy-transcoder | |
| (testing "roundtrip returns correct value" | |
| (are [k v] | |
| (do (c/set tc k 1 v nippy-transcoder) | |
| (is (= v (c/get tc k nippy-transcoder)))) | |
| "text" "abc" | |
| "nil" nil | |
| "boolean" true | |
| "char-utf8" \ಬ |