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
/* Copyright Lydia & M1 | |
Take it, I don't care | |
Programming is just copying | |
*/ | |
package org.firstinspires.ftc.teamcode; | |
import com.qualcomm.robotcore.eventloop.opmode.OpMode; | |
import com.qualcomm.robotcore.eventloop.opmode.TeleOp; | |
import com.qualcomm.robotcore.hardware.DcMotor; | |
import com.qualcomm.robotcore.hardware.Servo; |
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
import { Controller } from 'stimulus' | |
export default class extends Controller { | |
static targets = ['content', 'keyword', 'iconDown', 'iconUp'] | |
toggle () { | |
if (this.contentTarget.classList.contains('hidden')) { | |
this.showContent() | |
this.changeKeyword('Hide') | |
} else { |
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
config.wrappers :flatpickr, class: 'mb-6 relative' do |b| | |
b.use :html5 | |
b.use :label, class: 'mb-2' | |
b.wrapper tag: :div, html: { | |
data: { | |
controller: 'flatpickr', | |
wrap: true, | |
alt_format: 'm/d/Y', | |
flatpickr_cleave_date_pattern: %w[m d Y] | |
} |
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
expect.extend({ | |
toHaveCssClass(received, cssClass) { | |
const pass = received.querySelector(`.${cssClass}`) !== undefined; | |
return { | |
message: () => this.isNot ? `${cssClass} was found` : `${cssClass} not found`, | |
pass: pass | |
}; | |
} | |
}); |
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
select.arrow-blue-400 { | |
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' | |
fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23#{str-slice(quote($colors-blue-400), 2, 7)}' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") | |
} |
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
namespace :code do | |
task precommit: %i[rubocop erblint csslint jslint jstest rspec] | |
task :rubocop do | |
system('rubocop', exception: true) | |
end | |
task :erblint do | |
system('bundle exec erblint --lint-all --enable-all-linters', | |
exception: true) |
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 Post | |
include ActiveModel::Model | |
YAML_FRONT_MATTER_REGEXP = | |
%r{\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)}m.freeze | |
attr_accessor :title, :date, :html, :filename | |
def slug | |
File.basename(filename, ".md").remove(filename[0, 11]) |
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
import React from "react"; | |
import { StyleSheet } from "react-native"; | |
import { colors } from "./Colors"; | |
let stylesheet = StyleSheet.create({ | |
"flex-1": { flex: 1 }, | |
"flex-row": { flexDirection: "row" }, | |
"justify-around": { justifyContent: "space-around" }, | |
"justify-between": { justifyContent: "space-between" }, | |
"items-center": { alignItems: "center" }, |
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
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="fill-current <%= css_classes %>"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"/></svg> |
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
cat <file_name> | gpg -ac -o- | curl -X PUT -T "-" https://transfer.sh/<file_name>.gpg | |
curl https://transfer.sh/<hash>/<file_name>.gpg | gpg -o- > <file_name> |
NewerOlder