This file contains hidden or 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
#!/bin/bash | |
# The output file | |
output_file='combined.fbs' | |
# Remove the output file if it already exists | |
if [ -f $output_file ]; then | |
rm $output_file | |
fi |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.12) | |
project(fileProcessor) | |
set(CMAKE_CXX_STANDARD 11) | |
add_executable(fileProcessor fileProcessor.cpp) | |
# set_target_properties(fileProcessor PROPERTIES LINK_FLAGS "-s WASM=1 -s EXTRA_EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'") | |
# set_target_properties(fileProcessor PROPERTIES LINK_FLAGS "-s WASM=1 -s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]' -s EXPORTED_FUNCTIONS='[\"_malloc\", \"_free\"]'") | |
set_target_properties(fileProcessor PROPERTIES LINK_FLAGS "-s WASM=1 -s EXPORTED_RUNTIME_METHODS='[\"cwrap\", \"UTF8ToString\"]' -s EXPORTED_FUNCTIONS='[\"_malloc\", \"_free\"]'") |
This file contains hidden or 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
var serp = document.querySelector('cib-serp'); | |
console.log("Found # serp: ") | |
console.log(serp) | |
var conversation = "" | |
/* Check if the element has a shadow root */ | |
if (serp && serp.shadowRoot) { | |
/* Select the "cib-conversation" element within the shadow root */ | |
var conversation = serp.shadowRoot.querySelector('cib-conversation'); |
This file contains hidden or 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 SwiftUI | |
import spmlib | |
struct ContentView: View { | |
let l = SPMLib() | |
var body: some View { | |
VStack { |
This file contains hidden or 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
var hItems = document.querySelectorAll("div[data-testid='issue-history.ui.history-items.generic-history-item.history-item']") | |
var desc = hItems[1] | |
if (hItems.length < 1) { | |
alert("switch to history tab and re-run") | |
return | |
} | |
else { | |
Array.from(hItems).forEach(function (desc, idx){ | |
if (desc.childNodes.length > 1 ){ | |
prof = desc.childNodes[0] |
This file contains hidden or 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
# youtube cosmetics | |
www.youtube.com###logo-icon > .yt-icon.style-scope > .yt-spec-icon-shape > div | |
www.youtube.com###masthead-container:style(opacity:0.25) | |
www.youtube.com###top-row:style(opacity:0.25) | |
www.youtube.com##ytd-comments-header-renderer:style(opacity:0.25) | |
www.youtube.com###secondary:style(opacity:0.25) | |
www.youtube.com###description:style(opacity:0.25) | |
www.youtube.com###sections:style(opacity:0.25) |
This file contains hidden or 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
hs.hotkey.bind({"cmd", "shift", "ctrl"}, "v", function() | |
typesim() | |
end) | |
hs.hotkey.bind({"cmd", "shift", "ctrl"}, "s", function() | |
stopType() | |
end) | |
activeTimer = nil |
This file contains hidden or 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
hs.hotkey.bind({"cmd", "shift", "ctrl"}, "space", function() | |
rightHalf() | |
end) | |
function rightHalf() | |
screen = hs.screen.mainScreen() | |
screenName = screen:name() | |
win = hs.window.focusedWindow() | |
app = win:application():name() |
This file contains hidden or 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
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0 | |
See the above repository for updates as well as full license text. */ | |
/* Makes tabs to appear on multiple lines */ | |
/* Tab reordering will not work and can't be made to work */ | |
/* You can use multi-row_tabs_window_control_patch.css to move window controls to nav-bar*/ | |
/* You might want to move tabs-new-tab-button outside tabs toolbar for smoother behavior */ | |
/* Change the --multirow-n-rows to change maximum number of rows before the rows will start to scroll */ |
This file contains hidden or 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(){window.s0=document.createElement('script');window.s0.setAttribute('type','text/javascript');window.s0.setAttribute('src','https://bookmarkify.it/bookmarklets/58928/raw');document.getElementsByTagName('body')[0].appendChild(window.s0);})(); |