Skip to content

Instantly share code, notes, and snippets.

View anoadragon453's full-sized avatar
🎠
Coding for fun and freedom!

Andrew Morgan anoadragon453

🎠
Coding for fun and freedom!
View GitHub Profile
@filips123
filips123 / README.md
Last active September 2, 2019 13:05
ZeroFrame WebSocket API for JavaScript

ZeroFrame WebSocket API for JavaScript

About

This is JavaScript WebSocket client for ZeroFrame API. It supports (almost) same features as default ZeroFrame that is included in ZeroNet sites, but it is using WebSocket client so it can be used in local programs, such as Node.js and Electron.

This is part of clients that will try to add ZeroNet support to local programs outside the browser. I'm currently also creating clients for Python and PHP which will add more possibilities for ZeroNet usage. Please let me know in comments which languages would you also like to support.

The program is now also available as GitHub repository and NPM package on filips123/ZeroFrameJS. Updated documentation is also available there.

@ara4n
ara4n / perl.md
Last active July 16, 2021 09:49
Everything you need to know about Perl5

I once wrote one of these before for @NegativeMjark but I think I lost it. So here's another.

All you need to know is:

  • $foo is a scalar (i.e. a single dimensional variable)
  • @foo is an array. $foo[n] is the element of an array.
  • %foo is a hash. $foo{'moo'} aka $foo{moo} is the value in the hash for key 'foo'.
  • \ is the reference operator. it returns a scalar which points to the address of the variable (like & in C).
  • (1, 2, 3) is a list. (an array is a variable which contains a list).
  • [1, 2, 3] (rarely: \(1,2,3)) is a reference to a list - aka arrayref
  • $foo->[n] gives an element of an arrayref
@refi64
refi64 / config.rst
Last active April 23, 2023 14:24
Configuring evdev RPCS3 joysticks

Configuring evdev RPCS3 joysticks

The evdev joystick code in RPCS3 is primarily designed to use XBox controllers by default. For other controllers, you'll probably need to make a few changes.

The config file

Configuration is stored in $HOME/.config/rpcs3/config_linuxjoystick.yml. The easiest way to test your joystick is with the PS3 Game Pad Test homebrew.

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: