Taken from Google Support on Nov 16, 2018.
| What you can search by | Search operator and example |
|---|---|
| Specify the sender | from:Example: from:amy |
| Specify a recipient | to:Example: tso:david |
| #!/usr/bin/env fish | |
| # Floppy imaging script for OSX | |
| # Requires gdd, diskutil and python (either 2 or 3). | |
| # | |
| # Waits until a new floppy is inserted, then automatically images it to | |
| # the indicated directory. Set the directory in $FLOPPY_IMAGING_PATH. | |
| # | |
| # We will calculate the CRC32 of the first 500 bytes of the floppy | |
| # as part of the filename, along with the floppy partition name. |
| #!/usr/bin/env node | |
| const { execSync, spawn, exec } = require('child_process') | |
| // Pass '0', '1' or '2' as only argument. | |
| const type = Math.max(Math.min(process.argv[2] ? parseInt(process.argv[2], 10) : 0, 2), 0) | |
| console.log('Type', type) | |
| // Note: executing 'command' which outputs more than 8192 characters of data. |
Taken from Google Support on Nov 16, 2018.
| What you can search by | Search operator and example |
|---|---|
| Specify the sender | from:Example: from:amy |
| Specify a recipient | to:Example: tso:david |
| // ==UserScript== | |
| // @name iSakura TV - Auto next program | |
| // @namespace http://webtv.jptvpro.net/ | |
| // @version 0.1 | |
| // @description Automatically activates the next program when your current one finishes playing. | |
| // @author Michiel Sikma <[email protected]> | |
| // @match http://webtv.jptvpro.net/play.html | |
| // @grant none | |
| // ==/UserScript== |
| #!/usr/bin/env node | |
| // Displays some basic information about the Node project in this directory. | |
| // Example output: | |
| // | |
| // msikma-lib-projects (1.0.0) <https://github.com/msikma/msikma-lib-projects> | |
| // Monorepo container for msikma-lib-projects, containing a number of client libraries | |
| // Last commit: 2018-10-14 22:29:35 +0200 (63 minutes ago) | |
| // | |
| // lerna | bootstrap |
| #!/usr/bin/env bash | |
| # Retrieves the mime type, e.g. 'image/png' | |
| mime=$(file -bN --mime-type "$1") | |
| # Converts the file itself to Base64 | |
| content=$(base64 -b0 < "$1") | |
| printf "url('data:%s;base64,%s')\n" $mime $content |
| const { override, addDecoratorsLegacy } = require('customize-cra') | |
| // Adds legacy decorator support to the Webpack configuration. | |
| module.exports = override(addDecoratorsLegacy()) |
| import React from 'react' | |
| // Decorator that passes on a 'message' property to a class. | |
| const addMessage = (str) => (component) => { | |
| component.prototype.message = str | |
| } | |
| @addMessage('Hello world!') | |
| export default class DecoratorTest extends React.PureComponent { | |
| render() { |
| extern crate ncurses; | |
| use ncurses::*; | |
| use std::thread; | |
| use std::time; | |
| use std::env; | |
| use std::str::FromStr; | |
| const USAGE: &str = "Usage: readc [TIMEOUT_MS]"; | |
| /// Reads a single character from stdin with a timeout specified in milliseconds. |
| #!/usr/bin/env fish | |
| #set -l dark (set_color blue) | |
| set -l dark (set_color 333333) | |
| set -l norm (set_color normal) | |
| echo (set_color yellow)" \\ / "(set_color normal)Clear | |
| echo (set_color yellow)" .-. "(set_color green)11(set_color normal) ยฐC | |
| echo (set_color yellow)" โ ( ) โ "(set_color normal)โ (set_color green)4(set_color normal) km/h | |
| echo (set_color yellow)" `-โ "(set_color normal)10 km |