Skip to content

Instantly share code, notes, and snippets.

s = School.find('5e82753df4e68d00330979d7')
s.mailing_address.update(country: 'PA', subdivision: '8', postal_code: '0801')
let leap_day = new Date(2020, 1, 29);
let next_feb_eom = new Date(2021, 1, 28);
assert(
calculateNextYear(leap_day) === next_feb_eom
);
let leap_day = new Date(2020, 1, 29);
let next_feb_eom = new Date(2021, 1, 28);
assert(calculateNextYear(leap_day) === next_feb_eom);
let calculateNextYear = (some_date) =>
new Date(some_date.getFullYear() + 1,
some_date.getMonth(),
some_date.getDate());
let today = new Date();
let next_year = calculateNextYear(today);
let today = new Date();
let next_year =
new Date(today.getFullYear() + 1,
today.getMonth(),
today.getDate());
{
"title": "Change caps_lock key (rev 4)",
"rules": [{
"description": "Change caps_lock to control if pressed with other keys, to tab if pressed alone.",
"manipulators": [{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]

Keybase proof

I hereby claim:

  • I am bkudria on github.
  • I am bkudria (https://keybase.io/bkudria) on keybase.
  • I have a public key ASChDq4pqwwIrJtwF-BohQlITdrOBsepNbWOSC_x-mL6AAo

To claim this, I am signing this object:

;;; iterm.el - Send text to a running iTerm instance
(require 'pcase)
(require 'thingatpt)
(defvar iterm-default-thing 'line
"The \"thing\" to send if no region is active.
Can be any symbol understood by `bounds-of-thing-at-point'.")
(defvar iterm-empty-line-regexp "^[[:space:]]*$"
class Render
def self.[](engine:)
Class.new(self) do
define_singleton_method(:engine) do
engine
end
define_singleton_method(:with_engine) do
engine
end
{
"name": "FastLED-3.1",
"keywords": "led, strip",
"description": "FastLED is a fast, efficient, easy-to-use library for programming addressable LED strips and pixels such as WS2810, WS2811, LPD8806, Neopixel and more. 3.1 branch.",
"repository": {
"type": "git",
"url": "https://github.com/FastLED/FastLED.git"
},
"version": "c2ee876cc4",
"frameworks": "arduino",