Skip to content

Instantly share code, notes, and snippets.

View americos's full-sized avatar
💭
Coding, coding, and coding some more

Americo Savinon americos

💭
Coding, coding, and coding some more
  • Malaga, Spain
  • 17:50 (UTC +02:00)
  • X @americos
View GitHub Profile
@americos
americos / android.yml
Created February 27, 2020 14:31 — forked from edvinasbartkus/android.yml
Running Detox tests for Android on Github Actions Workflow
name: Android
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
@americos
americos / .github-workflows-main.yml
Created February 27, 2020 14:30 — forked from edvinasbartkus/.github-workflows-main.yml
Github Action for React Native Detox
name: Detox
on: [push]
jobs:
build:
runs-on: macOS-latest
timeout-minutes: 15
env:
// time and time end
console.time("This");
let total = 0;
for (let j = 0; j < 10000; j++) {
total += j
}
console.log("Result", total);
console.timeEnd("This");
// Memory
#!/usr/bin/env ruby
# List all keys stored in memcache.
# Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place.
require 'net/telnet'
headings = %w(id expires bytes cache_key)
rows = []
@americos
americos / sphinx.rb
Last active December 16, 2015 03:59 — forked from alexstubbs/sphinx.rb
require 'formula'
class Libstemmer < Formula
# upstream is constantly changing the tarball,
# so doing checksum verification here would require
# constant, rapid updates to this formula.
head 'http://snowball.tartarus.org/dist/libstemmer_c.tgz'
homepage 'http://snowball.tartarus.org/'
end