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
| ## run on blender | |
| import os | |
| def importfbx(f): | |
| print("import", f) | |
| bpy.ops.import_scene.fbx(filepath=f) | |
| def import_path(path): | |
| files = os.listdir(path) |
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
| using UnityEngine; | |
| using System.Collections; | |
| using UnityEditor; | |
| [CustomEditor(typeof(LevelScript))] | |
| public class LevelScriptEditor : Editor | |
| { | |
| public override void OnInspectorGUI() | |
| { | |
| LevelScript myTarget = (LevelScript)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
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| public class UnityEventInvoke : MonoBehaviour { | |
| public EventTrigger.TriggerEvent onClick; | |
| void Start() { | |
| BaseEventData eventData = new BaseEventData(EventSystem.current); | |
| onClick.Invoke(eventData); | |
| } |
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
| import cookielib, urllib2, time | |
| from pyquery import PyQuery as pq | |
| email="mail@mail.com" | |
| pwd="yeasure :D" | |
| cj = cookielib.CookieJar() | |
| go = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) | |
| d= pq(go.open("http://www.facebook.com/").read()) |