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
<script src="/javascripts/three.min.js" type="text/javascript"></script> | |
<script src="/javascripts/three/EditorControls.js" type="text/javascript"></script> | |
<div id="canvas-frame"></div> | |
<script> | |
var ModelRender = function(texture, scene) { | |
this.scene = scene; | |
this.texture = texture; | |
this.boxes = []; | |
this.addBox = function(boxSize, boxPos, texPos) { | |
var box = new ModelBox(boxSize, boxPos, texPos, true, this); |
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
Module Module1 | |
Sub Main() | |
Dim r As Single | |
Dim n As Integer | |
r = 0.0 | |
n = 10 | |
For i As Integer = 1 To n | |
i = i + 1 |
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 net.minecraft.client.model; | |
import cpw.mods.fml.relauncher.Side; | |
import cpw.mods.fml.relauncher.SideOnly; | |
import net.minecraft.entity.Entity; | |
import net.minecraft.util.MathHelper; | |
import org.lwjgl.opengl.GL11; | |
@SideOnly(Side.CLIENT) | |
public class ModelBiped extends ModelBase |
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
$ LANG=C xdg-user-dirs-gtk-update | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo apt-get install ibus-mozc chromium-browser curl \ | |
compiz-dev compiz-plugins-main-dev fusion-icon compizconfig-settings-manager \ | |
libreadline6-dev git-core libssl-dev libyaml-dev libsqlite3-dev \ | |
sqlite sqlite3 autoconf libtool bison subversion vim fontforge libmagick++-dev |
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
if current_user.verify_skin.present? | |
current_user.verify_skin.destroy | |
end | |
w = 64 | |
h = 32 | |
canvas = Magick::Image.new(w, h) { | |
self.format = 'png' | |
} | |
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
require 'RMagick' | |
w = 64 | |
h = 32 | |
canvas = Magick::Image.new(w, h) | |
canvas.format = 'png' | |
dr = Magick::Draw.new | |
prng = Random.new | |
for x in 0..(w - 1) |
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
class SingletonExample | |
{ | |
public static SingletonExample instance; | |
public SingletonExample() | |
{ | |
instance = new SingletonExample(); | |
} | |
} |
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
#!/bin/python | |
# -*- coding: utf-8 -*- | |
import tweepy | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_TOKEN = '' | |
ACCESS_TOKEN_SECRET = '' |
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
# encoding: utf-8 | |
require "net/https" | |
require "oauth" | |
require "cgi" | |
require "json" | |
require "openssl" | |
require "date" | |
require "./key_token.rb" | |
require "pp" |
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
boolean heldItemLeft | |
//実際に与えられる値はintだが、内容はItemIDなのでbooleanにcast | |
//右手もあるが、今まで使われたことがない ModelBipedクラスなのでエンダーマンやゾンビ用? | |
boolean isSneak | |
//しゃがんでるか | |
boolean aimedBow | |
//弓で射ているか |