Skip to content

Instantly share code, notes, and snippets.

var canvas = document.getElementById('myCanvas');
var ctx = canvas.getContext('2d');
// Define images with their respective properties
var images = [
{
image: new Image(),
src: 'image1.png',
x: 100,
y: 100,
var canvas = document.getElementById('myCanvas');
var ctx = canvas.getContext('2d');
// Define images with their respective properties
var images = {
image1: {
image: new Image(),
src: 'image1.png',
x: 100,
y: 100,
var canvas = document.getElementById('myCanvas');
var ctx = canvas.getContext('2d');
// Define images with their respective properties
var images = {
'image1.png': {
image: new Image(),
x: 100,
y: 100,
width: 50,
@jinwoo-jeon0
jinwoo-jeon0 / startup.meta
Created September 26, 2021 07:02
...\Red Dead Redemption 2\x64\data
<?xml version="1.0" encoding="UTF-8"?>
<CDataFileMgr__ContentsOfDataFileXml>
<disabledFiles />
<includedXmlFiles itemType="CDataFileMgr__DataFileArray" />
<includedDataFiles />
<dataFiles itemType="CDataFileMgr__DataFile">
<Item>
<filename>platform:/data/cdimages/scaleform_platform_pc.rpf</filename>
<fileType>RPF_FILE</fileType>
</Item>
@CharlieHess
CharlieHess / CircularTextMeshPro.cs
Last active April 23, 2024 18:40
Improved CircularTextMeshPro using OnPreRenderText
using UnityEngine;
using TMPro;
using Sirenix.OdinInspector;
/// <summary>
/// An extension of TextMeshPro that causes the text to be displayed in a
/// circular arc.
///
/// Adapted from https://github.com/TonyViT/CurvedTextMeshPro and improved.
/// TonyViT's version has some unnecessary properties and doesn't use the
@scottjbarr
scottjbarr / install_python26_from_source.sh
Created January 21, 2010 01:53
Install Python 2.6 from Source
#!/bin/bash
#
# Install Python 2.6 from Source
#
# Author : Scott Barr
# Date : 21 Jan 2010
#
PYTHON_VERSION=2.6.4
@FlantasticDan
FlantasticDan / get_ordinal.py
Created March 2, 2021 09:37
Simple python method to get a number's ordinal ('st', 'nd', or 'th')
SUFFIXES = {1: 'st', 2: 'nd', 3: 'rd'}
def get_ordinal(i):
# Adapted from https://codereview.stackexchange.com/questions/41298/producing-ordinal-numbers
if 10 <= i % 100 <= 20:
return 'th'
else:
return SUFFIXES.get(i % 10, 'th')
// Get the canvas element from the HTML document
var canvas = document.getElementById('myCanvas');
// Get the 2D rendering context of the canvas, which allows us to draw on it
var ctx = canvas.getContext('2d');
// Define images with their respective properties
// This is an object where we store information about our images
var images = {
// Key: 'image1.png', Value: Object containing properties of the first image
@ryanmaclean
ryanmaclean / append_etc_hosts.sh
Last active April 23, 2024 18:39
Append or Replace /etc/hosts using Tee
#! /bin/bash
echo "127.0.0.1 localhost" | sudo tee --append /etc/hosts
echo "127.0.0.1" `ec2metadata --local-hostname` | sudo tee --append /etc/hosts
## Remove --append to overwrite the file
KUMPULAN CODE TERMUX LENGKAP
| SPAM CHAT WHATSAPP || nggk usah nyepam gw -_* atau hp lu gw ledakin!!#@vms
$ pkg update && pkg upgrade
Setelah mengupdate dan mengupgrade termux ketikan perintah berikut :
$ pkg install python2 (y/n pilih y)
$ pkg install php (y/n pilih y)
$ pkg install git (y/n pilih y)
Setalah mengikuti perintah di atas waktu-nya kita clonning tool-nya :
$ git clone https://github.com/siputra12/prank.git