Skip to content

Instantly share code, notes, and snippets.

View TheoryOfNekomata's full-sized avatar
🎹
Practicing

Allan Crisostomo TheoryOfNekomata

🎹
Practicing
View GitHub Profile
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@maelp
maelp / README.md
Last active December 19, 2015 08:39
Creating a brush stroke effect - part 2

Creating a brush stroke effect - part 2

Please see http://8pen.com/blog/doodle for a more complete explanation of how we built the brush stroke

The construction of the brush stroke is done in four steps:

  • create regularly spaced vertices describing the brush stroke centerline
  • compute the normal vectors at each point
  • extrude the ribbon
  • scale the ribbon to create a bulge around the midpoint
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active April 15, 2026 14:56
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@felixjones
felixjones / pmx21.md
Last active May 12, 2026 12:00
PMX (Polygon Model eXtended) 2.0, 2.1 File Format Specifications

PMX (Polygon Model eXtended) 2.1

This is an English description of the .PMX file format used in Miku Miku Dance (MMD).

PMX is the successor to the .PMD format (Polygon Model Data).

This is work-in-progress! Please leave feedback in the comments.

Todo

@patik
patik / how-to-squash-commits-in-git.md
Last active April 8, 2026 18:17
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@alexkirsz
alexkirsz / sixth-sense.js
Created May 23, 2016 18:56
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()
@pashinin
pashinin / gist:f98bc62a727fb517b48baf9d443bcebb
Last active February 15, 2024 07:28
windows shit hostnames to block
# -*- mode:conf-unix -*-
### hosts win10 extra
### More info: https://github.com/crazy-max/WindowsSpyBlocker
0.0.0.0 answers.microsoft.com
0.0.0.0 apps.skype.com
0.0.0.0 az361816.vo.msecnd.net
0.0.0.0 az512334.vo.msecnd.net
0.0.0.0 cdn.content.prod.cms.msn.com
0.0.0.0 choice.microsoft.com
@Centrinia
Centrinia / scales.txt
Created February 16, 2019 15:55
C tonic musical scales
0 : 0:00:00 ::
6 - 6
C F# C F# C
1 : 0:00:01.750000 ::
5 - 7
C F C F C
This file has been truncated, but you can view the full file.
1 =
= 0^3 + 0^3 + 1^3
= -8^3 + -6^3 + 9^3
= -12^3 + 9^3 + 10^3
= -103^3 + 64^3 + 94^3
= -138^3 + -71^3 + 144^3
= -150^3 + 73^3 + 144^3
= -138^3 + -135^3 + 172^3
= -249^3 + 135^3 + 235^3
= -495^3 + 334^3 + 438^3