Skip to content

Instantly share code, notes, and snippets.

View PEZO19's full-sized avatar

Zoltan Peto PEZO19

View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active June 12, 2024 09:50
Retrieving Named Functions from Google Spreadsheet using Google Apps Script

Retrieving Named Functions from Google Spreadsheet using Google Apps Script

This is a sample script for retrieving the named functions from Google Spreadsheet using Google Apps Script.

Recently, the named functions got to be able to be used in Google Spreadsheet. Ref When several named functions are added, I thought that I wanted to retrieve these functions using a script. But, unfortunately, in the current stage, it seems that there are no built-in methods (SpreadsheetApp and Sheets API) for directly retrieving the named functions. So, I created this sample script.

In this script, the following flow is run.

@steniowagner
steniowagner / Login.tsx
Last active January 13, 2022 04:20
Simple code to perform "swipe-actions" with flatlist in react-native
import React, { useState } from "react";
import LoginComponent from "./LoginComponent";
const usersTest = Array(8)
.fill({ name: "", cns: "" })
.map((_, index) => ({
name: `User ${index}`,
cns: `123.456.${index}`,
}));
@GeorgeLyon
GeorgeLyon / Rust vs. Swift.md
Last active July 2, 2024 15:45
A list of advantages Swift has over Rust

Note This is a little out of date. Rust has made some progress on some points, however many points still apply.

Philosophy

Progressive disclosure

Swift shares Rust's enthusiasm for zero-cost abstractions, but also emphasizes progressive disclosure. Progressive disclosure requires that language features should be added in a way that doesn't complicate the rest of the language. This means that Swift aims to be simple for simple tasks, and only as complex as needed for complex tasks.

The compiler works for you

@soaxelbrooke
soaxelbrooke / quickjest.js
Last active August 25, 2019 23:30
quickjest.js - A quickcheck-style property-based test wrapper for Jest
// A prototype-based test wrapper based on generators.
// See original Haskell quickcheck paper: http://www.cs.tufts.edu/~nr/cs257/archive/john-hughes/quick.pdf
// --------------------------- //
// Scroll to bottom for usage! //
// --------------------------- //
import R from 'ramda';
const RUNS_PER_TEST = 50;
module namespace fb = "http://wcandillon.io/modules/firebase";
import module namespace http = "http://zorba.io/modules/http-client";
declare namespace an = "http://zorba.io/annotations";
declare variable $admin:firebase-endpoint := "https://myapp.firebaseio.com/";
declare %an:nondeterministic function fb:get($document-uri as string, $token as string) {
http:get(
$admin:firebase-endpoint || $document-uri || "?auth=" || $token
).body.content ! parse-json($$)
@hapticdata
hapticdata / array-depth.js
Created September 16, 2016 18:16
calculate the depths of nested arrays
/**
* Operations to calculate the depths of a nested array
* @author Kyle Phillips
* @module 'array-depth'
*/
const maxDepth = (a)=>{
let maxVal = Number.MIN_VALUE
let item
Put to ~/.oh-my-zsh/custom/name.zsh-theme
Set ZSH_THEME to "name" in zshrc
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
@Yimiprod
Yimiprod / difference.js
Last active July 4, 2024 13:14
Deep diff between two object, using lodash
/**
* This code is licensed under the terms of the MIT license
*
* Deep diff between two object, using lodash
* @param {Object} object Object compared
* @param {Object} base Object to compare with
* @return {Object} Return a new object who represent the diff
*/
function difference(object, base) {
function changes(object, base) {
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 6, 2024 04:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@cvrebert
cvrebert / css_regression_testing.md
Last active May 28, 2024 17:42
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots