This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| /* | |
| * Copyright (c) 2011 Jose Miguel Pérez, Twoixter S.L. | |
| * | |
| * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| http://union.bokecc.com/playvideo.bo?uid=C089D59BA5DEEC18&playerid=58C72EF83A565238&playertype=1&autoStart=false&vid=28535D5099D7FF35 | |
| http://union.bokecc.com/servlet/playinfo?uid=C089D59BA5DEEC18&vid=28535D5099D7FF35&lid=&pid=58C72EF83A565238&pt=1&m=1&t=2&pp=false&d=union.bokecc.com&fv=WIN%2011%2C5%2C502%2C110&uu=1432E6BE318DBAA44D95462F785FBEE3B4338501&rnd=4249 | |
| 与上面等效可读取,从而匹配播放地址上的参数: | |
| http://union.bokecc.com/servlet/playinfo?uid=C089D59BA5DEEC18&vid=28535D5099D7FF35&lid=&pid=58C72EF83A565238 | |
| <?xml version="1.0" encoding="UTF-8"?> |
| package com.comphenix.example; | |
| import org.bukkit.Location; | |
| import org.bukkit.command.Command; | |
| import org.bukkit.command.CommandSender; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.event.EventHandler; | |
| import org.bukkit.event.Listener; | |
| import org.bukkit.event.entity.EntityDamageByBlockEvent; | |
| import org.bukkit.event.entity.EntityDamageEvent.DamageCause; |
When you spectate a game in League of Legends, you tell the client to use a HTTP server, and make HTTP requests to it to retrieve data in chunks which make up a game. But what if you could return back the exact same data at a later time, simulating the spectate but viewing it at anytime? That's the concept behind replays and that's how they work.
There is some behavior in the API which I do not fully understand yet, so there are if statements to catch these edge cases.
Before you can even get the game's metadata, you'll need to retrieve necessary information for the game. This call is part of the official Riot Games API.
/observer-mode/rest/consumer/getSpectatorGameInfo/{platformId}/{summonerId}
| using UnityEngine; | |
| using System.Linq; | |
| [RequireComponent(typeof(Rigidbody))] | |
| public class RigidbodyMassCalculator : MonoBehaviour { | |
| public float density = 1f; | |
| public bool recalculateOnAwake = true; | |
| Rigidbody rb; |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using System.IO; | |
| using System.Reflection; | |
| [InitializeOnLoad] | |
| public static class ShowFileExtensions | |
| { |
| using UnityEngine; | |
| public class DraggablePointAttribute : PropertyAttribute { | |
| public bool local; | |
| public DraggablePointAttribute (bool local = false) { | |
| this.local = local; | |
| } | |
| } |
| $sourcePath = 'HKLM:\software\Microsoft\Speech_OneCore\Voices\Tokens' #Where the OneCore voices live | |
| $destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' #For 64-bit apps | |
| $destinationPath2 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\SPEECH\Voices\Tokens' #For 32-bit apps | |
| cd $destinationPath | |
| $listVoices = Get-ChildItem $sourcePath | |
| foreach($voice in $listVoices) | |
| { | |
| $source = $voice.PSPath #Get the path of this voices key | |
| copy -Path $source -Destination $destinationPath -Recurse | |
| copy -Path $source -Destination $destinationPath2 -Recurse |
| using System; | |
| /// <summary> | |
| /// Reference Class. | |
| /// </summary> | |
| [Serializable] | |
| public abstract class Reference | |
| { | |
| } |