Skip to content

Instantly share code, notes, and snippets.

View acalatrava's full-sized avatar

Antonio Calatrava acalatrava

  • Mobile Innovations SL
  • Spain
  • 03:44 (UTC +01:00)
  • X @acalatrava
View GitHub Profile
@hellonicolas
hellonicolas / gulpfile.js
Last active March 10, 2018 11:30
Build script to help convert Framer projects to Cordova iOS builds
var gulp = require('gulp'),
runSequence = require('run-sequence'),
coffee = require('gulp-coffee'),
htmlreplace = require('gulp-html-replace'),
del = require('del'),
copy = require('gulp-copy'),
wait = require('gulp-wait'),
gutil = require('gulp-util'),
cordova = require("cordova-lib").cordova;
@darookee
darookee / mine-top-coin.sh
Created June 25, 2017 20:20
Start mining coins recommended by whattomine
#!/bin/bash
# this script expects scripts named <cointag> in the minerscripts sub directory
# Passing 'i' to this scripts will ask before starting to mine, answer 'n' to quit
# or 'c' to ask for the next available coin
# running without arguments starts mining the first available coin
#
# Example:
#
# cat ./minerscripts/ETH
@igrr
igrr / esp32s3-psram-alloc-exec.c
Created July 10, 2023 17:18
Copy a function into PSRAM on ESP32-S3 and execute it
/*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include "esp_err.h"
#include "esp_log.h"
@epicfilemcnulty
epicfilemcnulty / 2safetensors.py
Created September 13, 2023 20:21
convert pytorch weights to safetensors
import json
import os
import sys
from collections import defaultdict
from tqdm import tqdm
import argparse
import torch
from safetensors.torch import load_file, save_file