Skip to content

Instantly share code, notes, and snippets.

View Gopiandcode's full-sized avatar
🏳️‍⚧️
!!!!!!!Helllllloooooooooooooo

Kiran Gopinathan Gopiandcode

🏳️‍⚧️
!!!!!!!Helllllloooooooooooooo
View GitHub Profile
class DataSet {
String dateStrings[] = new String[350];
Float precipitationValues[] = new Float[350];
DataSet() {
dateStrings[0] = "21/03/1948";
precipitationValues[0] = 2.04;
dateStrings[1] = "26/09/1948";
precipitationValues[1] = 1.51;
dateStrings[2] = "16/02/1949";
precipitationValues[2] = 1.83;
@Gopiandcode
Gopiandcode / dependent_view_drops_called.rs
Created August 4, 2018 00:43
A quick test demonstrating how the dependent view ensures that all items are still dropped as expected.
#[macro_use] extern crate dependent_view;
use std::rc::{Weak, Rc};
use dependent_view::rc::DependentRc;
trait Testable {
fn get_id(&self) -> usize;
fn get_i_id(&self) -> usize;
}
@Gopiandcode
Gopiandcode / property.rs
Created August 8, 2018 13:27
Example Implementation of additive changes in rust - needs polishing
use std::ops::{Add, AddAssign, Sub};
pub trait Lerpable<T> {
fn at_progress(&self, progress: f32) -> T;
}
pub trait Diffable<T, U : Lerpable<T>> {
fn diff(start: &T, end: &T) -> U;
}
pub struct AddativeDiff<T, U : Lerpable<T>> {
@Gopiandcode
Gopiandcode / cram-mode.el
Created January 22, 2023 13:37
An emacs mode for cram tests
;;; cram-mode.el --- Emacs mode for CRAM tests -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Kiran Gopinathan
;; Author: Kiran Gopinathan
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;;; search-with-llama.el --- Find an answer to your query using llama! -*- lexical-binding: t; -*-
;; Copyright (C) 2023 Kiran Gopinathan
;; Author: Kiran Gopinathan
;; Keywords:
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
"========== character a ============"
mathcomp.solvable.abelian.html contains:
- end : Q16220058
- order : Q2029226
- structure : Q6671777
- f : Q9765
- g : Q9739
- t : Q9813
- d : Q9884
- call : Q407264
@Gopiandcode
Gopiandcode / godot-api-spec.rkt
Created December 2, 2023 14:52
A declarative racket DSL for extracting data from JSON
#lang racket
(require (for-syntax syntax/parse
racket/syntax
racket/string
racket/match
syntax/parse/class/paren-shape))
(provide make-godot-parser define-godot-bindings)
(module+ test
@Gopiandcode
Gopiandcode / emacs-dawn-trans.svg
Created June 11, 2024 02:57
Emacs+Trans wallpaper based on Maria Shanina's Desert Nights
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.