Skip to content

Instantly share code, notes, and snippets.

View JuSTeRFeeD's full-sized avatar
🏠
Working from home

Alexandr JuSTeRFeeD

🏠
Working from home
View GitHub Profile
@piki
piki / push-big-repo
Last active June 3, 2025 10:13
Script to push (mirror) a large repo to GitHub
#!/bin/bash -ex
#
# Push the current repository to GitHub, in small enough chunks that it
# won't exceed the pack-size limit
# Commit to start with, counting from the oldest. If the process fails,
# you can change this variable to restart from where it failed.
START_COMMIT=1000
# Number of commits to push at a time, counting from the oldest. If a
@dragermrb
dragermrb / Description-and-Usage.md
Created May 17, 2020 12:43
HTML5 Resize image before upload without ajax

HTML5 Resize image before upload without ajax

Allows to resize a file input image before upload to the server. The resized image will be attached to original file input. Then you can submit your form without ajax or handle it as you need.

Usage as jQuery Plugin

<form>
    <label>Select image</label>
@Glavak
Glavak / CameraConstantWidth.cs
Last active March 15, 2025 01:34
Скрипт для поддержания постоянной ширины камеры в Unity, для туториала https://youtu.be/0cmxFjP375Y
using UnityEngine;
/// <summary>
/// Keeps constant camera width instead of height, works for both Orthographic & Perspective cameras
/// Made for tutorial https://youtu.be/0cmxFjP375Y
/// </summary>
public class CameraConstantWidth : MonoBehaviour
{
public Vector2 DefaultResolution = new Vector2(720, 1280);
[Range(0f, 1f)] public float WidthOrHeight = 0;