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
var target_url = 'http:\/\/yahoo.com' | |
var text = "むにむにまゆげ! " + vurl | |
$('body').append($( | |
"<a id=\"tweet\" href=\"http:\/\/twitter.com/share\" class=\"twitter-share-button\" data-url=\"" + target_url + "\" data-text=\"" + text + "\" data-count=\"vertical\" data-lang=\"ja\">Tweet<\/a><script type=\"text/javascript\" src=\"http://platform.twitter.com/widgets.js\"><\/script>" | |
)); |
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
sudo apt-get update | |
sudo apt-get install ruby1.9.3 | |
sudo gem update | |
sudo gem install sinatra --no-ri --no-rdoc | |
sudo apt-get install libxml2-dev libxslt1-dev libxml2 gcc make | |
sudo gem install aws-sdk --no-ri --no-rdoc | |
sudo gem install slim --no-ri --no-rdoc | |
sudo apt-get git | |
sudo apt-get ruby-bundler |
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
// Run()関数内の処理を記述 | |
// 外部クラスの活用などは一般形式のスクリプトコードを使用してください. | |
// プラグイン変数は IPERunArgs args を通して取得可能 | |
// コードに自動的に追加されるヘッダ/フッタはメニューから有効化/確認が可能(ヘッダは標準で有効設定) | |
StreamWriter writer; | |
var pmd = args.Host.Connector.Pmd.GetCurrentState(); |
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
import maya.cmds | |
maya.cmds.loadPlugin("C:/Users/EIICHI/Documents/GitHub/mmd-transporter/main.py") | |
poly = maya.cmds.createNode('transform') | |
mesh = maya.cmds.createNode('mesh', parent=poly) | |
maya.cmds.sets(mesh, add='initialShadingGroup') | |
spoly = maya.cmds.createNode('transportedMMD1') | |
maya.cmds.connectAttr(spoly + '.outputMesh', mesh + '.inMesh') |
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
// Run()関数内の処理を記述 | |
// 外部クラスの活用などは一般形式のスクリプトコードを使用してください. | |
// プラグイン変数は IPERunArgs args を通して取得可能 | |
// コードに自動的に追加されるヘッダ/フッタはメニューから有効化/確認が可能(ヘッダは標準で有効設定) | |
string name; | |
ExpressionCategory category; | |
var vectors = Dictionary<int, IPEVector3>(); |
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 UnityEngine; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.IO; | |
using System.Text; | |
public class SkinnedMeshConverter | |
{ | |
// 頂点インデックスとウェイトのペア |
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
#-*- encoding: utf-8 | |
import maya.cmds as cmds | |
import maya.mel as mel | |
import csv | |
import codecs | |
# ルートボーンが選択されている状態で実行する必要あり | |
def GetBoneNames(): | |
cmds.select(hierarchy=True) |
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
#-*- encoding: utf-8 | |
import maya.cmds as cmds | |
import maya.mel as mel | |
import csv | |
import codecs | |
# ルートボーンが選択されている状態で実行する必要あり | |
def GetBoneNames(root): | |
cmds.select(root, hierarchy=True) |
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
require "aws-sdk" | |
rds = AWS::RDS.new( | |
:access_key_id => "XXX", | |
:secret_access_key => "XXX", | |
:rds_endpoint => "rds.us-west-2.amazonaws.com") | |
inst = rds.db_instances['DB Instance Identifier'] | |
puts inst.db_name |
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
#-*- encoding: utf-8 | |
require "aws-sdk" | |
require "./helpers.rb" | |
db = dynamodb_client(:tokyo) | |
db.client.create_table( | |
:table_name => "test", | |
:attribute_definitions => [ | |
{:attribute_name => "name", :attribute_type => "S"}, | |
{:attribute_name => "number", :attribute_type => "N"}, |