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 node | |
const { execSync } = require('child_process'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const tweetIds = [ | |
'1723011519942648318', | |
'1641908734845755392', | |
'1495949891503366148' |
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
-- Telescope.nvim command to copy relative path from Telescope#find_files | |
-- Activating <C-y> on a result will copy the path to clipboard, relative to the path of the current file Buffer | |
local function relative_path(target_file) | |
local current_file = vim.fn.expand('%:p') -- Get the full path of the current file | |
local target_file_full = vim.fn.fnamemodify(vim.fn.resolve(target_file), ':p') -- Get the full path of the target file | |
local current_parts = vim.split(current_file, '/') | |
local target_parts = vim.split(target_file_full, '/') |
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
// SPDX-License-Identifier: MIT | |
pragma solidity >=0.7.0 <0.9.0; | |
contract ItemTransaction { | |
address public owner; | |
struct Buyer { | |
uint depositAmount; | |
bool isReported; | |
bool exists; |
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
{ | |
"spec_version": "v1.18", | |
"identifier": "installed-auto", | |
"name": "installed-auto", | |
"abstract": "A list of modules installed on the auto KSP instance", | |
"author": [ | |
"trand" | |
], | |
"version": "2021.03.19.11.40.35", | |
"license": [ |
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
// ==UserScript== | |
// @name DroneBuildStatusTabTitle | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Display Drone CI build status in browser tab title | |
// @author Trent Rand | |
// @match https://drone.squarespace.net/* | |
// @grant none | |
// ==/UserScript== |
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
This protocol is well-defined by [RFC 5724][1] with the formal definition: | |
sms-uri = scheme ":" sms-hier-part [ "?" sms-fields ] | |
scheme = "sms" | |
sms-hier-part = sms-recipient *( "," sms-recipient ) | |
sms-recipient = telephone-subscriber ; defined in RFC 3966 | |
sms-fields = sms-field *( "&" sms-field ) | |
sms-field = sms-field-name "=" escaped-value | |
sms-field-name = "body" / sms-field-ext ; "body" MUST only appear once | |
sms-field-ext = 1*( unreserved ) |
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
javascript:(function(){var d=document.createElement('script');d.src='http://code.jquery.com/jquery-latest.js';d.onload=function(){$(".media-control").remove();$("video").prop("controls",true)};document.getElementsByTagName('head')[0].appendChild(d)})() |
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
/Applications/DisableMonitor.app/Contents/MacOS/DisableMonitor --list | egrep '([0-9]*) (?:HTC-VIVE)' | sed 's/[^0-9]//g' | xargs /Applications/DisableMonitor.app/Contents/MacOS/DisableMonitor --disable |
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
// Test Cases: | |
// “A BIG DOG” should return 3 | |
// “A” should return 1 | |
// “ BC “ should return 1 | |
int CountNumWordsInSentence(const char* InString) { | |
bool wasLetter = true; | |
int wordCount = 0; | |
// For this for loop. take advantage that InString is a char pointer. |
NewerOlder