Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block coyotte508

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View data.json

When doing a fresh install, yarn takes the latest versions of the packages according to semver.

Then it creates a yarn.lock file, and won't upgrade the packages anymore.

Yarn upgrade only upgrades the modules installed locally. It has no effect for anybody else as it does not modify package.json.

Upgrading gaia-engine on the website

Option 1

View stream-concat.js
var Transform = require('stream').Transform;
class StreamConcat extends Transform {
constructor(streams, options) {
this.streams = streams;
this.canAddStream = true;
this.currentStream = null;
this.streamIndex = 0;
View hangmancheat.js
/evalp ret = []; for (var i = 1; i <= 720; i++) {if (/^....u$/i.test(sys.pokemon(i))) ret.push(sys.pokemon(i))} ret;
View main.cpp
#include <pythran/pythran.h>
/* Module name, function name, argument types */
pythran_export_solo(test, init, int)
#include "test.cpp"
namespace test = namespace __pythran_test;
int main() {
#pythran export run()
def init(x):
global a
a = x
def show():
def run():
View gist:7744420

Release for Servers

This new release is a major release for server owners. We had problems with crashes -- between other things --, and so we did an overhaul of the way things were done.

There are two major changes:

  • The database system was completely changed. No more using SQL, instead text files in a folder named "serverdb".
  • Battles are in a separate process, a "battle server". Essentially means no crashes and hot updates.
coyotte508 / gist:7506961
Created Nov 16, 2013
List image sizes in current dir
View gist:7506961
find ./* -prune -type f -name "*.png" -exec convert {} -print "{}=%wx%h\n" /dev/null \;
View gist:7421632
git rev-list master | while read rev; do git ls-tree -lr $rev | cut -c54- | grep -v '^ '; done | sort -u | perl -e '
while (<>) {
$sums{$stuff[1]} += $stuff[0];
print "$sums{$_} $_\n" for (keys %sums);
' | sort -rn >> large_files.txt
git filter-branch --tree-filter 'rm -rf `cat /full/path/to/large_files.txt | cut -d " " -f 2` ' --prune-empty <BRANCHES>
View math.patch
diff --git a/pythran/pythonic++/modules/math.h b/pythran/pythonic++/modules/math.h
index 1701f47..df1f189 100644
--- a/pythran/pythonic++/modules/math.h
+++ b/pythran/pythonic++/modules/math.h
@@ -1,6 +1,8 @@
+#include <gmpxx.h>
You can’t perform that action at this time.