Skip to content

Instantly share code, notes, and snippets.

View mfakane's full-sized avatar

mfakane mfakane

View GitHub Profile
@mfakane
mfakane / MMMCameraModify.cs
Created May 20, 2012 17:21
MMMCameraModify.exe のソース
// Mono.Cecil required
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace MMMCameraModify
{
@mfakane
mfakane / Favo.cs
Created May 19, 2012 13:13
ふぁぼふぁぼ
using System;
using System.Diagnostics;
using System.Linq;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using System.Threading.Tasks;
using Codeplex.OAuth;
using Linearstar.Psycho;
namespace ConsoleApplication1
@mfakane
mfakane / gist:2669859
Created May 13, 2012 00:23
.pmd フォーマット、あってるかどうかは知らない
Please see the following url for the latest format definition:
http://github.com/mfakane/Keystone/blob/master/Keystone.IO/MikuMikuDance/Pmd/PmdFormat.txt
@mfakane
mfakane / Program.cs
Created May 11, 2012 01:18
MMDVer3 以降の .vmd から MMDVer2 で読み込める .vmd にする実験。必要ライブラリはコード内コメントを参照
// requires SlimDX (or any 3D mathmatics library) and Keystone.IO
// Keystone.IO: https://github.com/mfakane/Keystone/tree/master/Keystone.IO
using System.IO;
using Linearstar.Keystone.IO.MikuMikuDance;
using SlimDX;
namespace ConsoleApplication1
{
class Program
{
@mfakane
mfakane / DependencyPropertyListener.cs
Created May 7, 2012 16:38
Listen property changes using Binding
using System;
using System.Windows;
using System.Windows.Data;
namespace Linearstar.Lavis.Presentation
{
public class DependencyPropertyListener : DependencyObject
{
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(object), typeof(DependencyPropertyListener), new PropertyMetadata((sender, e) =>
{
@mfakane
mfakane / DragDropBehavior.cs
Created May 5, 2012 12:25
Heavymoon ListBox DragDrop Behavior
/*
<ListBox>
<i:Interaction.Behaviors>
<v:DragDropBehavior />
</i:Interaction.Behaviors>
</ListBox>
*/
using System;
using System.Collections;
using System.Collections.Generic;
@mfakane
mfakane / MetroAnimateItemsBehavior.cs
Created May 5, 2012 11:08
Heavymoon ListBox Item Animator
/*
<ListBox>
<i:Interaction.Behaviors>
<v:MetroAnimateItemsBehavior />
</i:Interaction.Behaviors>
</ListBox>
*/
using System;
using System.Collections.Generic;
@mfakane
mfakane / Navigator.cs
Created May 2, 2012 07:58
Alistar ViewModel-View Page transition system
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.Windows.Controls;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
namespace Linearstar.Alistar.ViewModels
@mfakane
mfakane / gist:2522808
Created April 29, 2012 00:05
.mvd フォーマット解析
Please see the following url for latest format definition:
https://github.com/mfakane/Keystone/blob/master/Keystone.IO/MikuMikuMoving/MvdFormat.txt
@mfakane
mfakane / gist:2481561
Created April 24, 2012 17:07
MikuMikuMoving/CSharpScriptPlugin 用の、モーフキーフレーム入れ替えスクリプト
/*
* 二つのモーフのキーフレームを全部入れ替える
*/
#include "Util/SystemUtil.lsms"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;