Skip to content

Instantly share code, notes, and snippets.

View CABTV UPDATE CHANGELOG [22.10.2021]
Site Updates:
- [General] Minor styling improvements.
- [General] Disabled automatic 30 day log out.
- [Admin] Fixed bug whereby scheduled posts were not sending subscribers notifications.
- [Live] Popout menu with options for each comment:
Information: Display detailed metadata about the comment and the author, including IP-based geo-location (accurate).
Report: Flag an inappropriate comment for moderation.
- [Live] Improved comment moderation system.
- [Live] Restored toggle button cycle for aspect ratio 4:3 (Cropped).
- [Live] New option 'Comment Limit'. Default (256), Max (512)
@hedgehog90
hedgehog90 / EFI Partition Creation Guide for Windows 10
Last active Sep 6, 2021
EFI Partition Creation Guide for Windows 10
View EFI Partition Creation Guide for Windows 10
Boot with Windows Install Disk / Recovery Tool USB
Advanced Options -> Command Prompt:
Enter the following (hashtags are comments, not part of the command):
diskpart
list disk
select disk N # N refers to the disk which contains the deleted the EFI System partition.
list partition
View Ron
ron, eyes closed, imagining 'you're going to hollywood' and crashing into the wtc.
wakes up, he is watchjng a 9/11 themed porno on his virgin subscription.
ron's wife appears.
cut to ron writing an email to all the newspapers.
'it's happened again'
View vlc output
> "C:\Program Files\VideoLAN\VLC\vlc.exe" --no-repeat --no-loop -I rc -vv --no-lua playlist.m3u vlc://quit
--sout=#transcode{vcodec=h264,vfilter=canvas{width=1280,height=720,aspect=16:9},scale=1,fps=25,acodec=mp4a}:gather:file{mux=mp4,dst="out.mp4"}
--sout-keep --ignore-config
VLC media player - 3.0.8 Vetinari
Copyright © 1996-2019 the VideoLAN team
Warning: if you cannot access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I qt"
Remote control interface initialised. Type `help' for help.
View the.real.sonic.the.hedgehog.part.002.1080p.mp4.credits.txt
Video:
Sonic The Hedgehog 1 [Gameplay Footage] (1991)
Bride of Frankenstein (1935)
Sonic The Hedgehog [TV Series] (1993-1994)
QVC UK - Gold Ring (2019)
Jerry Springer - Klanfrontation Fight (1995)
Music:
@hedgehog90
hedgehog90 / get_anim_datas
Created Mar 31, 2019
a helpful function for finding most of the animation datas used in a context or scene
View get_anim_datas
def get_anim_datas(context=None):
if context is None: context = bpy.context
found = set()
materials = set()
textures = set()
def found_add(o):
if o is None: raise Exception()
found.add(o)
found_add(context.scene)
View game.as
//When it comes to implementing user interfaces (buttons, detecting key presses, etc.), depending on the language & framework it is different.
//I was brought up with the concept of events and event listeners. An event is something that happens, a listener is something that will allow you to respond to certain events.
//Every game engine/framework will implement a system like this, to allow the app and the user to communicate back and forth.
//Some examples of an event would be 'Click' or 'KeyPress'. these would allow you (the coder) to detect what part of the screen the user is clicking or what keys are being pressed.
//There are also system events that you would depend on for making the game run at all, like 'EnterFrame' (fired at the beginning of each frame) or 'OnExit' if you want to perform an action (like saving the user's progress) before the app is terminated.
//By listening for these events, it's possible to create a simple game loop.
//An example of a mouse click listener:
function OnClick(e:Mouse
View basics.py
# I'm sure you already know about basic data types, like ints, floats, strings and bools, so let's start with loops and basic data structures.
# Let's see all the ways we might generate a sequence of numbers from 0-9.
# First, using a while loop and a list:
zero_to_nine = []
i = 0
while i < 10:
zero_to_nine.append(i)
i += 1
View gist:7f838a6b1ac4a7896a1ac63585595c6a
import sys
ans = sys.stdin.readline().split(" ")
guess = sys.stdin.readline().split(" ")
def count_white(ans, guess):
temp_ans = ans[:]
pegs = 0
for i in guess:
if i in temp_ans: