Skip to content

Instantly share code, notes, and snippets.

@thoroc
thoroc / gist:7138b60613f69f835851583075827bbc
Last active April 5, 2022 09:26 — forked from digitaljhelms/gist:1354003
Installing and using Gource on Mac OS X (only tested on Snow Leopard)

Gource

Gource is a software version control visualization tool.

Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project.

http://code.google.com/p/gource/

Installing Gource Manually (w/out MacPorts or Homebrew)

import BigWorld
from Vehicle import Vehicle
from gui.Scaleform.daapi.view.battle.classic.stats_exchange import FragsCollectableStats
from items.vehicles import getVehicleTypeCompactDescr
from Avatar import PlayerAvatar
from debug_utils import _doLog
import xfw
from xvm_main.python.stats import _stat, _Stat
import xvm_main.python.config as xvm_config
@thoroc
thoroc / chat.xc
Created August 7, 2017 08:23 — forked from Tey/chat.xc
[WoT] Colorize in battle chat with XVM colors
{
// Add the following line to @xvm.rc to register that file:
// , "chat": ${"chat.xc":"chat"}
// Color values for substitutions.
// Значения цветов для подстановок.
"def": {
// Dynamic color by various statistical parameters.
// Динамический цвет по различным статистическим показателям.
"colorRating": {
@thoroc
thoroc / README.md
Last active December 16, 2016 17:42
Paywall Bitch

Yeah Bitch!

Original Source

This extension modifies the referrer and blocks tracking cookies for any site listed in the manifest.

Changes

  • README
  • SeattleTimes
  • Name
@thoroc
thoroc / GAME_MASTER_POKEMON_v0_2.tsv
Created July 16, 2016 22:45 — forked from anonymous/GAME_MASTER_POKEMON_v0_2.tsv
Pokemon from GAME_MASTER protobuf file v0.2 in a .tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 27 columns, instead of 12 in line 2.
PkMn BaseStamina BaseAttack BaseDefense Type1 Type2 BaseCaptureRate BaseFleeRate CollisionRadiusM CollisionHeightM CollisionHeadRadiusM MovementType MovementTimerS JumpTimeS AttackTimerS QuickMoves CinematicMoves AnimTime Evolution EvolutionPips PokemonClass PokedexHeightM PokedexWeightKg HeightStdDev WeightStdDev FamilyId CandyToEvolve
1 90 126 126 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.1599999964237213 0.10000000149011612 0.3815000057220459 0.6539999842643738 0.27250000834465027 HoloPokemonMovementType.POKEMON_ENC_MOVEMENT_JUMP 10.0 1.149999976158142 29.0 d601dd01 5a3b76 6d56d53fdaac2a3f6d56d53f93a9ea3f0000000036ab0a403333b33fbfbbbb3f 02 HoloPokemonClass.POKEMON_CLASS_NORMAL 1 0.699999988079071 6.900000095367432 0.08749999850988388 0.862500011920929 HoloPokemonFamilyId.V0001_FAMILY_BULBASAUR 25
2 120 156 158 HoloPokemonType.POKEMON_TYPE_GRASS HoloPokemonType.POKEMON_TYPE_POISON 0.07999999821186066 0.07000000029802322 0.3187499940395355 0.637499988079071 0.2549999952316284 H
@thoroc
thoroc / GAME_MASTER_v0_1.protobuf
Created July 16, 2016 22:44 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@thoroc
thoroc / gist:a0b01517e1b156421403369543ba8690
Last active May 23, 2016 08:21 — forked from dfinzer/gist:8059ce0b43c476fcb986e8b3096aeafd
Command for creating new aliases from the previous command
## source: https://medium.com/the-lazy-developer/an-alias-for-new-aliases-c6500ae0f73e#.76kiw5euv
new-alias() {
local last_command=$(echo `history |tail -n2 |head -n1` | sed 's/[0-9]* //')
echo alias $1="'""$last_command""'" >> ~/.bash_profile
. ~/.bash_profile
}
@thoroc
thoroc / fix-php-coding-style.sh
Last active May 3, 2017 13:55 — forked from zhouyl/fix-php-coding-style.sh
Fix PHP Coding Style for Symfony2 project
#!/bin/bash
# we are assuming php-cs-fixer installation path
BIN=/usr/local/bin/php-cs-fixer
# install php-cs-fixer
if [ ! -f $bin ]; then
echo "Preparing to install php-cs-fixer ..."
wget http://cs.sensiolabs.org/get/php-cs-fixer.phar -O $bin
chmod a+x $bin
@thoroc
thoroc / README.md
Last active August 29, 2015 14:22 — forked from chrisjacob/README.md

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).