This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using UnityModManagerNet; | |
using Harmony12; | |
using UnityEngine; | |
using System.Collections.Generic; | |
namespace FanService | |
{ | |
public class FanServiceMod | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdlib.h> | |
#include <avr/io.h> | |
#include <avr/sleep.h> | |
#include <avr/interrupt.h> | |
#include "light_ws2812.h" | |
#define FPS (33) | |
#define NUM_OF_LEDS (10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Test aspects to allow fine grained control over what tests are executed. | |
Several parts of the test infrastructure are implemented as mixins, | |
such as API result caching and excessive test durations. An unused | |
mixin to show cache usage is included. | |
""" | |
# | |
# (C) Pywikibot team, 2014-2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nightly/core | |
2 | |
2015-10-06T12:02:43 | |
f67a7f5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
now=`date +"%Y%m%d"` | |
sudo tar -cf ./owncloud-$now.tar /var/www/owncloud/ | |
sudo chown fabian:fabian ./owncloud-$now.tar | |
echo 'PostgreSQL password coming up...' | |
pg_dump owncloud -h localhost -U postgres -f owncloud-sqlbkp_$now.bak | |
tar -rf ./owncloud-$now.tar owncloud-sqlbkp_$now.bak | |
echo 'Compressing...' | |
xz owncloud-$now.tar | |
echo 'Encrypting...' | |
openssl aes-256-cbc -salt -in owncloud-$now.tar.xz -out owncloud-$now.tar.xz.aes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
if sys.version_info[0] > 2: | |
unichr = chr | |
def make_compatible(src): | |
delim = src[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""Clean up the git branches by removing branches whose change-id got merged.""" | |
from __future__ import unicode_literals | |
import argparse | |
import collections | |
import itertools | |
import json | |
import re |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lines (line number in brackets) sorted for length | |
pywikibot/site.py 137 (l 3959) | |
pywikibot/site.py 126 (l 3958) | |
pywikibot/site.py 110 (l 3963) | |
pywikibot/site.py 108 (l 4458) | |
pywikibot/site.py 106 (l 588) | |
pywikibot/site.py 101 (l 3960) | |
pywikibot/site.py 095 (l 4380) | |
pywikibot/site.py 095 (l 4507) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from collections import OrderedDict | |
def parse_value(value, parameters, allow_unknown=False): | |
""" | |
Parse the value of an argument into subarguments. | |
The value is basically a comma-separated string. Each comma-separated value | |
can be named which is separated by an equals sign. It is possible to escape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def interwiki_prefix_path(self, site, max_depth=2): | |
# all sites already checked | |
visited = set() | |
old_queue = [(self, [])] | |
new_queue = [] | |
for depth in range(max_depth): | |
print('D{}'.format(depth)) | |
print('Q{}'.format(old_queue)) | |
for checked_site, path in old_queue: | |
print('-' * 30) |
NewerOlder