Skip to content

Instantly share code, notes, and snippets.

@thiagogabriel
thiagogabriel / gist:aff9f42255e2be74a875e4840a974443
Last active March 9, 2024 09:46
Benchmark Mac/Ryzen Speedomenter 2.1

Macbook Pro M1 Pro 16", 16GB, 1TB

  • 344 ± 4.9 - Firefox 116.0.1
  • 339 ± 12 - Safari 16.6
  • 313 ± 15 - Brave 1.56.20
  • 306 ± 14 - Chrome 115.0.5790

Windows, Ryzen 7 5800X, 32GB, 1TB

  • 314 ± 6.9 - Chrome 115.0.5790
  • 307 ± 5.6 - Edge
  • 296 ± 6.1 - Brave
Hashtag helper does not store user credentials.
We may analyse the app usage anonymously to improve the user experience and add better features.
@thiagogabriel
thiagogabriel / phoenix benchmark
Last active March 21, 2016 00:18
phoenix benchmark on heroku doing external request to requestb.in
Using HTTPotion
With external request 1
800 requests
150 concurrency
failed 564
Requests per second: 88.32
________________________________________
With external request 2
@IBAction func openFolderAction(sender: AnyObject) {
let rpFilePicker:NSOpenPanel = NSOpenPanel()
rpFilePicker.allowsMultipleSelection = false
rpFilePicker.canChooseDirectories = true
rpFilePicker.canChooseFiles = false
rpFilePicker.runModal()
let chosenFile = rpFilePicker.URL
#pragma strict
function Start () {
}
function Update () {
}
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
require 'csv'
require 'json'
array = []
CSV.foreach('full-list.csv') do |row|
array << {
name: row[0],
address: row[1],
location: {
__type: 'GeoPoint',
set -g default-terminal "screen-256color"
set -g status-bg black
set -g status-fg white
setw -g mode-mouse on
set-option -g base-index 1
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
set -g status-keys vi
set-window-option -g utf8 on
# rails-api App
class ArticlesController < ApplicationController
def index
@articles = Article.all
render json: @articles
end
def show
@article = Article.find(params[:id])
@thiagogabriel
thiagogabriel / giffy
Created June 23, 2013 02:48 — forked from fnando/giffy
#!/usr/bin/env bash
if [[ ! -f "$1" ]]; then
echo "=> Movie file not found"
exit 1
fi
tempfile=/tmp/output.gif
rm -f $tempfile