Skip to content

Instantly share code, notes, and snippets.

View LogIN-'s full-sized avatar
:electron:
Working from space

LogIN-

:electron:
Working from space
  • WWW
View GitHub Profile
@LogIN-
LogIN- / SailingBoatMetrics.js
Last active January 28, 2024 20:12
A comprehensive JavaScript class for evaluating sailing boat performance and safety. This class, `SailingBoatMetrics`, includes methods to calculate essential metrics such as the Capsize Screening Formula (CSF), Angle of Vanishing Stability (AVS), Displacement to Length Ratio (D/L), Sail Area to Displacement Ratio (SA/D), Ballast Ratio, Length t…
/**
* Class representing the metrics of a sailing boat.
*
* This class provides functionalities to calculate various metrics relevant to a sailing boat's
* performance and safety. It includes methods to compute ratios and coefficients such as the
* Capsize Screening Formula (CSF), Displacement to Length Ratio (D/L), and others.
* It also allows for normalization and scoring of these metrics for a comprehensive evaluation.
*
* Measurements can be input in either metric or imperial units, with conversion capabilities
* included. The class provides a scoring system to evaluate the overall performance and safety
#!/bin/bash
## Trick Slack on Linux to always have active status
## Get current pointer location
## xdotool getmouselocation
i=0
while [ 1 ]; do
## Move to Outlook
xdotool mousemove 818 38 click 1
Fiduciary License Agreement 2.0 based on the Individual Contributor exclusive License Agreement
(including the TRADITIONAL PATENT LICENSE OPTION)
Thank you for your interest in contributing to genular development foundation ("We" or "Us").
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights
granted by contributors to Us.
0. Preamble
Software is deeply embedded in all aspects of our lives and it is important that it empower, rather
json_info
| feature_count|sql                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |features_hash                    | donors_count|data_source |

|-------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@LogIN-
LogIN- / frexp.R
Created August 17, 2017 23:49
Extract Mantissa and Exponent of the Floating-Point Value
#!/usr/bin/Rscript --vanilla
#
# Author: LogIN- <info{@/at}ivantomic{.}com
# License: MIT
#
# Description:
#
# Extract Mantissa and Exponent of the Floating-Point Value
# frexp() returns an list containing Mantissa and Exponent of the Floating-Point Value
#
@LogIN-
LogIN- / list_intersect.R
Created August 17, 2017 22:53
Computes the intersection of lists in R
#!/usr/bin/Rscript --vanilla
#
# Author: LogIN- <info{@/at}ivantomic{.}com
# License: MIT
#
# Description:
#
# Computes the intersection of lists
# list_intersect() returns an list containing all the values of list1 that are present in all the arguments. Note that positions are NOT preserved.
#
@LogIN-
LogIN- / add_trackers.sh
Created August 10, 2017 22:04
Transmission CLI add trackers in BULK
#!/bin/bash
# I was looking for a way to add/modify all trackers in all torrents in my remote transmission instance.
# So I had bunch of old torrents like 500 of them with mostly broken outdated trackers.
# This is a small helper script that will loop over all your torrents and add trackers that finds on torrentz domain.
# I came out on this: https://github.com/Entware-ng/Entware-ng/wiki/Using-Transmission#adding-more-trackers little script and modify it a bit.
# Please modify this script that it suits your environment.
base_url='https://torrentz2.is'
pattern='announcelist_[0-9]+'
#!/usr/bin/env bash
# names of latest versions of each package
export NGINX_VERSION=1.7.10
export VERSION_PCRE=pcre-8.36
export VERSION_LIBRESSL=libressl-2.1.3
export VERSION_NGINX=nginx-$NGINX_VERSION
export NPS_VERSION=1.9.32.3
export VERSION_PAGESPEED=v${NPS_VERSION}-beta
@LogIN-
LogIN- / magento_helpers.php
Created January 24, 2017 08:36
Magento direct database helper functions for faster speed
<?php
/**
* Get array of available product SKUs in the Database
*
* @param array $skus
*
* @return array
*/
private function _getProductIds($skus)
@LogIN-
LogIN- / hex_color_mapping.js
Created October 28, 2016 10:30
Color hex values to names mapping
[
["000000", "black"],
["000080", "navy-blue"],
["0000c8", "dark-blue"],
["0000ff", "blue"],
["000741", "stratos"],
["001b1c", "swamp"],
["002387", "resolution-blue"],
["002900", "deep-fir"],
["002e20", "burnham"],