Skip to content

Instantly share code, notes, and snippets.

@bmaupin
bmaupin / free-backend-hosting.md
Last active May 3, 2024 18:14
Free backend hosting
@machinaut
machinaut / gravity.py
Created February 9, 2018 19:40
mujoco-py - Change Model Parameters on the Fly
#!/usr/bin/env python
import time
import numpy as np
from mujoco_py import load_model_from_xml, MjSim, MjViewer
XML = '''
<mujoco>
<worldbody>
<geom name='floor' pos='0 0 0' size='5 5 .125' type='plane' condim='3'/>
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@stuudmuffin
stuudmuffin / curl_progress.php
Last active May 3, 2024 18:11 — forked from bdunogier/curl_progress.php
PHP/cURL download progress monitoring
<?php
//If output buffer flushing does not work, web-search for reasons your php/webserver setup may need to be adjusted
header('X-Accel-Buffering: no');
if (ob_get_level() == 0) ob_start();
//create javascript progress bar
echo "<html>
<head>
<script type='text/javascript'>
function updateProgress(perc) {
@bigsergey
bigsergey / review-checklist.md
Last active May 3, 2024 18:11
Front-end Code Review Checklist

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
@sebastiancarlos
sebastiancarlos / vi.inputrc
Last active May 3, 2024 18:10
Add vi mode to your Bash prompt.
# All my gist code is licensed under the terms of the MIT license.
# Video demo: https://www.youtube.com/shorts/7IEfnUqjaSk
# add the contents of this file to ~/.inputrc
# this is where the magic happens
set editing-mode vi
# vi INSERT prompt
@bryanburgers
bryanburgers / tmux-date
Last active May 3, 2024 18:09
Format the date how I like it, for use in the status bar of tmux
#!/bin/bash
# Format the current date in a way that clearly shows local time and UTC time,
# for use in a tmux status bar.
# Examples:
# tmux-date (with computer set to America/Chicago timezone)
# 2016-01-11 / 08:55 -06:00 / 14:55Z
# TZ="Australia/Victoria" tmux-date
# 2016-01-12 / 01:55 +11:00 / 2016-01-11T14:55Z

Setup Altserver Linux on Raspberry Pi with Wifi Refresh

This is a rough outline on how to setup altserver-linux on the 🍓🍰. Wifi refreshing is enabled through the use of netmuxd, which acts as a proxy from AltServer to the iDevice (replaces/enhances usbmuxd).

Tutorials used

Prerequisites

@Klerith
Klerith / pasos-node-typescript.md
Last active May 3, 2024 17:58
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)