Code example code using gRPC, as from users' perspective
package org.example;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import io.grpc.netty.NettyChannelBuilder;| // run in chrome -> sources -> snippets at | |
| // chrome-extension://[extension-id]/window.html | |
| async function storageGet(storageType, space = 2) { | |
| let storage_fn; | |
| if (storageType === 'local') { | |
| storage_fn = chrome.storage.local; | |
| } else if (storageType === 'sync') { | |
| storage_fn = chrome.storage.sync; | |
| } else { |
| package hello; | |
| import io.grpc.ManagedChannel; | |
| import io.grpc.ManagedChannelBuilder; | |
| import io.grpc.stub.ClientCallStreamObserver; | |
| import io.grpc.stub.StreamObserver; | |
| import java.util.concurrent.TimeUnit; |
| ; acceleration_enabled = {acceleration_enabled} | |
| ; acceleration_infill = {acceleration_infill} | |
| ; acceleration_ironing = {acceleration_ironing} | |
| ; acceleration_layer_0 = {acceleration_layer_0} | |
| ; acceleration_prime_tower = {acceleration_prime_tower} | |
| ; acceleration_print = {acceleration_print} | |
| ; acceleration_print_layer_0 = {acceleration_print_layer_0} | |
| ; acceleration_roofing = {acceleration_roofing} | |
| ; acceleration_skirt_brim = {acceleration_skirt_brim} | |
| ; acceleration_support = {acceleration_support} |
| #!/usr/bin/env bash | |
| # Copyright 2020 The gRPC Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
| // Copyright 2015 The gRPC Authors | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| sqlite3 ~/Library/Safari/CloudTabs.db "SELECT device.device_name, tab.url FROM cloud_tabs AS tab JOIN cloud_tab_devices AS device ON tab.device_uuid=device.device_uuid" |
| #!/usr/bin/env zsh | |
| # ------------------------------------------------------------------------------ | |
| # Prompt for the Zsh shell: | |
| # * One line. | |
| # * VCS info on the right prompt. | |
| # * Only shows the path on the left prompt by default. | |
| # * Crops the path to a defined length and only shows the path relative to | |
| # the current VCS repository root. | |
| # * Wears a different color wether the last command succeeded/failed. | |
| # * Shows user@hostname if connected through SSH. |
| <?php | |
| // Persistent sessions. | |
| session_name('your-name'); | |
| // Because your sessions in common folder could get collected by gc | |
| // started by another script where this sessions aren't set. | |
| ini_set("session.save_path", dirname(__FILE__) . '/tmp/'); | |
| // Decreases chance that gc process is started |
| (function() { | |
| var preTags = document.getElementsByTagName('pre'); | |
| var preWithHeaderInfo = preTags[0]; | |
| var preWithContent = preTags[2]; | |
| Array.prototype.slice.call(preTags).forEach(function(el) { | |
| el.style.display = 'none'; | |
| }); | |
| Array.prototype.slice.call(document.getElementsByTagName('hr')).forEach(function(el) { | |
| el.style.display = 'none'; |