This file contains hidden or 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
// This script is old and deprecated: Please see https://github.com/hajimehoshi/rpgmmv for the latest version. | |
(function() { | |
var MAX_SCALE = 1.5; | |
var Tilemap_initialize = Tilemap.prototype.initialize; | |
Tilemap.prototype.initialize = function() { | |
Tilemap_initialize.call(this); | |
this.width *= MAX_SCALE; | |
this.height *= MAX_SCALE; |
This file contains hidden or 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
Game_Action.prototype.decideRandomTarget = function() { | |
var target; | |
if (this.isForDeadFriend()) { | |
target = this.friendsUnit().randomDeadTarget(); | |
} else if (this.isForFriend()) { | |
target = this.friendsUnit().randomTarget(); | |
} else { | |
target = this.opponentsUnit().randomTarget(); | |
} | |
if (target) { |
This file contains hidden or 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
'use strict'; | |
// http://mithril.js.org/getting-started.html in a more ES6 way. | |
class Todo { | |
constructor(data) { | |
this.description_ = data.description; | |
this.done_ = false; | |
} | |
get description() { return this.description_; } |
This file contains hidden or 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
set-option -g prefix C-t | |
unbind C-b | |
bind C-t send-prefix | |
setw -g mode-keys emacs | |
This file contains hidden or 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 <assert.h> | |
#include <stdio.h> | |
#include <GL/gl.h> | |
#include <GL/glext.h> | |
#include "GLFW/glfw3.h" | |
PFNGLGENFRAMEBUFFERSEXTPROC glGenFramebuffersEXT; | |
PFNGLBINDFRAMEBUFFEREXTPROC glBindFramebufferEXT; | |
PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glFramebufferTexture2DEXT; |
This file contains hidden or 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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"path/filepath" |
This file contains hidden or 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
sudo apt-get upgrade | |
yes | sudo apt-get install wget | |
yes | sudo apt-get install git | |
yes | sudo apt-get install gcc | |
yes | sudo apt-get install libglu1-mesa-dev libgles2-mesa-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev libopenal-dev | |
wget https://storage.googleapis.com/golang/go1.7.3.linux-armv6l.tar.gz | |
tar zxvf go1.7.3.linux-armv6l.tar.gz | |
mv go go-bin | |
mkdir go | |
echo '' >> .bashrc |
This file contains hidden or 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
<!DOCTYPE html> | |
<iframe src="index2.html" sandbox="allow-scripts allow-same-origin" style="width: 100%; height: 100%"></iframe> |
This file contains hidden or 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
package main | |
type IF interface { | |
Int4(int) (int, int, int, int) | |
} | |
type impl struct{} | |
func (p *impl) Int4(i int) (int, int, int, int) { | |
return 0, 0, 16, 16 |
This file contains hidden or 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
package main | |
import ( | |
"image" | |
"log" | |
"math" | |
"time" | |
"github.com/hajimehoshi/ebiten" | |
"github.com/peterhellberg/plasma" |