Skip to content

Instantly share code, notes, and snippets.

View preyneyv's full-sized avatar
🐵
monke

Pranav Nutalapati preyneyv

🐵
monke
View GitHub Profile
@preyneyv
preyneyv / ConvertNewSteamID.markdown
Created August 10, 2025 15:34 — forked from bcahue/ConvertNewSteamID.markdown
Converting New SteamID Formats in Python

Seeing how SteamIDs have changed recently, I thought I'd write a Gist to help others (including myself!) decypher how to convert these from one format to the other in Python. First, let's go over basics to convert a 64bit CommunityID into a SteamID:

steamid64ident = 76561197960265728

def commid_to_steamid(commid):
  steamid = []
  steamid.append('STEAM_0:')
  steamidacct = int(commid) - steamid64ident
  
@preyneyv
preyneyv / steam_console_params.txt
Created November 16, 2024 17:43 — forked from davispuh/steam_console_params.txt
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
var data = {
  labels: ["January", "February", "March", "April", "May", "June", "July"],
  datasets: [
  {
    label: "My First dataset",
    backgroundColor: ['#cfc','#cfc','#cfc','#fcc','#cfc','#cfc','#cfc'],
    data: [65, 59, 80, 81, 56, 55, 40]
  },
 {

Angular Route Transition

This will be a very simple fade transition between routes for Angular.

First, import the BrowserAnimationsModule into your app.module.ts

Create a file called app/animations.ts.

// Define the animation.

File Upload using Laravel.

This is very easy.

In config/filesystems.php,

  // ...
  // Change 'local' path to this:
  'local' => [
    'driver' => 'local',
 'root' => public_path(),

Control CSS animation with scrolling

CSS animations are very easy to create, but they're one-shots: they can't easily be controlled by Javascript...

...until now!

/**
 * Use the scroll position to control the position of a CSS animation.
 * @param {string} target Selector of the target element