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
  • 00:32 (UTC +02:00)
  • X @americos
View GitHub Profile

Keybase proof

I hereby claim:

  • I am americos on github.
  • I am asavinon (https://keybase.io/asavinon) on keybase.
  • I have a public key ASCc8GoiEm_zyQ6Cv5j3SwYyJ0h4ZgDRitCoDNxN_CC0Ewo

To claim this, I am signing this object:

@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
async function getGithubUser(username) { // promise + await keyword usage allowed
try { // We handle async function errors with try / catch
const response = await fetch(`https://api.github.com/users/${username}`); // Execution stops here until fetch promise is fulfilled.
const user = response.json();
return user; // equivalent of resolving the getGithubUser promise with user value.
} catch (err) {
throw new Error(err); // equivalent of rejecting getGithubUser promise with err value.
}
}
@americos
americos / csv.html
Created January 31, 2013 16:08
Sample of Downloading data a .csv using a .jsp and a Form Post
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#csv_form").submit(function(event) {
event.preventDefault();
sha1 '2f3eae44cc44d263fe9513b856f49707a64cc840'
/biz/steve-canning-photography/577f0d12fdf47583.html
@americos
americos / gist:8056510
Created December 20, 2013 15:40
My gitconfig
[user]
name = Americo Savinon
email = americos@gmail.com
[color]
diff = auto
status = auto
branch = auto
[alias]
visual = gitk
[core]
@americos
americos / gist:6106137
Created July 29, 2013 17:47
Creating playlists for JW5
#Return a json string of related videos for JW Player playlist
def get_related_videos_for_jwplayer
related = self.related_clips
result = []
#Self Clip
result << {
"file" => self.rate_limited_url,
"image" => self["thumb_url"],
"title" => self["title"]