Skip to content

Instantly share code, notes, and snippets.

NeoTam neotam

Block or report user

Report or block neotam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import java.util.Scanner;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
View Python Function Arguments By
def printArgsByKind(a, b, c, default=None, intype=int, *more, operation, print_result=False, return_type, ignore_exceptions=True, **kwargs):
print("Regular Positional Arguments a: {}, b: {}, c: {}".format(a, b, c))
print("Default Arguments default: {}, intype: {}".format(default, intype) )
print("Variable length positional arguments(tuple) more: {}".format(more))
print("Non-Default Keyword-Only Arguments operation: {}, return_type: {}".format(operation, return_type))
print("Default Keyword-Only Arguments print_result: {}, ignore_exception: {}".format(print_result, ignore_exceptions))
print("Variable length keyword arguments kwargs: {}".format(kwargs))
View Async Clipboard API read from clipboard.js
function readFromClipboard() {
return navigator.clipboard.readText().then(
result => {
console.log("Successfully retrieved text from clipboard", result)
return Promise.resolve(result);
err => {
console.log("Error! read text from clipbaord", err)
View Async Clipboard API write to clipboard.js
function writeToClipboardOnPermission(text){
result => {
if (result.state == 'granted' || result.state == 'prompt'){
else {
console.log("Don't have permissions to use clipboard", result.state);
You can’t perform that action at this time.