- Creating a Reflection Shader
- Transparent water for indie
- UNITY3D - ransparent Water Effect | Free version | 3.x & 4.x
- Unity3D - Fun with Built-In Shaders and Effects
- Unity 4 - Creating a Survival Game in Unity: Part 1 - Island Creation
- Unity 5 - Writing Shader
- Unity 5 Graphics - The Standard Shader - Unity Official Tutorials
- Unity 5 - From Beginner to Pro #11 - Water 4
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
""" | |
host.txt generated from command: host -l domain (unix like) | |
""" | |
try: | |
f = open("host.txt", "r") | |
try: | |
lines = f.readlines() | |
before = "" | |
count = 0 | |
for line in lines: |
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
Private Sub Form_Load() | |
'init form | |
'frekuensi awal | |
frekuensi = 0 | |
'baris bikin graph, keknya ga bermasalah | |
FileSuaraUji(0) = "D:\Suara Uji\100.wav" | |
FileSuaraUji(1) = "D:\Suara Uji\200.wav" | |
FileSuaraUji(2) = "D:\Suara Uji\500.wav" |
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
<?php | |
class UserIdentity extends CUserIdentity { | |
private $_username; // username | |
private $_role; // nama user | |
private $_id; // id user | |
private $_statusPenyuluh; // Status penyuluh | |
public function authenticate() { |
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
//courtesy: http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/ | |
angular.module('session', ['$strap.directives'], setPostHeader) | |
//angular def (router, run ect | |
/** | |
* Set default header AJAX Angular agar bisa dibaca oleh PHP lewat POST | |
* @param $httpProvider | |
*/ | |
function setPostHeader($httpProvider) { |
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
function showPopUpDataPindah(button_id) { | |
var id_nik = button_id.substr(6); | |
console.log('id_nik: '+id_nik); | |
var nik = document.getElementById(id_nik).innerHTML; | |
console.log('nik: '+nik); | |
var id = button_id.substr(6); |
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
//How to get: | |
//invoke Profile._karma_tips in javascript console. | |
for (var key in Profile._karma_tips) { | |
console.log(Profile._karma_tips[key]) | |
} | |
* Menulis plurk mengenai hal menarik dan mendapat pengikut akan meningkatkan karma Anda | |
* Kehilangan pengikut akan menurunkan karma Anda | |
* Karma akan turun jika Anda meminta hubungan pertemanan dan ditolak <br /> <img src="/static/emoticons/platinum/idiot.gif" /> | |
* Mengundang orang ke Plurk akan memberikan Anda tambahan karma <br /> <img src="/static/emoticons/gold/rock_n_roll.gif" /> |
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 System; | |
using UnityEngine; | |
using Vexe.FastSave; | |
using Vexe.Runtime.Types; | |
namespace FSExamples | |
{ | |
public class GameObjectTest : BaseBehaviour | |
{ | |
public GameObject 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 UnityEditor; | |
using System.Collections; | |
// taken from http://answers.unity3d.com/answers/312489/view.html and modified to C# Unity 5 | |
// put it in editor folder | |
// select a camera then pressing Shift+C or in Window/Preview Selected Camera. | |
public class CameraPreview : EditorWindow | |
{ | |
Camera camera; |
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 UnityEditor; | |
using System; | |
using UnityEditor.SceneManagement; | |
using UnityEngine.SceneManagement; | |
namespace NirSoft.UtilityEditor | |
{ | |
/// <summary> | |
/// Autosave scene on run. |
OlderNewer