This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cell | |
@@cellid = -1 | |
# Renaming the attribute cellid to eg. id makes it work?! | |
attr_reader :cellid | |
def initialize | |
@cellid = (@@cellid += 1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addTodo(e) { | |
const value = e.target.value.trim() | |
if (!value) { | |
return | |
} | |
const todo = { | |
id: Date.now(), | |
title: value, | |
completed: false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="view"> | |
<input class="toggle" type="checkbox" v-model="todo.completed"> | |
<label @dblclick="editTodo(todo)"> | |
{{ todo.title }} | |
+ <div class="harvest-timer" :id="todo.id" | |
+ :data-item="`${JSON.stringify({ id: todo.id, name: todo.title })}`" | |
+ :data-group="`${JSON.stringify({ id: 1, name: 'TodoMVC' })}`" | |
+ > | |
+ </div> | |
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<link rel="icon" href="/favicon.ico" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>todos</title> | |
+ <script> | |
+ window._harvestPlatformConfig = { | |
+ "applicationName": "TodoMVC", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<link rel="icon" href="/favicon.ico" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>todos</title> | |
+ <script async src="https://platform.harvestapp.com/assets/platform.js"></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim9script | |
g:test#strategy = "vimterminal" | |
nmap <silent> <leader>t :TestNearest<CR> | |
nmap <silent> <leader>T :TestFile<CR> | |
def HdtTransform(cmd: string): string | |
var cmd_string = cmd | |
if !empty(glob(".docker/tilt/Dockerfile")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* INFO: The .to_s function for type [(class Label)] probably doesn't look too helpful. Trying calling the .help function. #<Label:0x7fc8c0034dd0> | |
Exception: ERROR: | |
Failed to convert #<Label:0x7fc8c0034dd0> for rendering (label). | |
Type Information: (class Label) | |
ERROR: | |
Unhandled method_missing with name :size_enum, args [] was invoked on class (class Label). | |
self#inspect: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
=begin | |
DEPENDENCIES: | |
$ brew install ffmpeg | |
$ brew install imagemagick | |
=end | |
require 'optparse' | |
require 'fileutils' |