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
while(True): | |
for i in range(99, 3, -1): | |
print("%s bottles of beer on the wall, %s bottles of beer."%(i, i)) | |
print("Take one down and pass it around, %s bottles of beer on the wall."%(i-1)) | |
print ("2 bottles of beer on the wall, 2 bottles of beer.\nTake one down and pass it around, 1 bottle of beer on the wall.\n1 bottle of beer on the wall, 1 bottle of beer.\nTake one down and pass it around, no more bottles of beer on the wall.\nNo more bottles of beer on the wall, no more bottles of beer.") |
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
class Test | |
{ | |
private static Dictionary<HTTPProtocolID, Uri> _makeUri = HTTPProtocolUri.MakeUri(Host); | |
} | |
public static class HTTPProtocolUri | |
{ | |
public static Dictionary<int, Uri> MakeUri() | |
{ | |
return new Dictionary<int, Uri> |
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 System; | |
using System.Collections.Concurrent; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
internal class Program | |
{ | |
private static ConcurrentQueue<int> _a = new ConcurrentQueue<int>(); |
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; | |
namespace PhotonTest | |
{ | |
public class CharacterController : MonoBehaviour | |
{ | |
private Vector3 _destination; | |
private RaycastHit _raycastHit; | |
private Vector3 _touch; | |
public float MoveSpeed; |
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 postgresql.driver as pg_driver | |
import xml.etree.ElementTree as etree | |
import sys | |
__author__ = 'ezaurum' | |
type_map = {'PlayerSpawnPoint': 0, 'Gathering': 1, 'NPC': 2} | |
xml_file_name = sys.argv[1] | |
tree = etree.parse(open(xml_file_name, 'r')) |
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 System.Collections.Generic; | |
using Facebook.Unity; | |
using UnityEngine; | |
/// <summary> | |
/// 페이스북 관련 스크립트 | |
/// </summary> | |
public class FacebookScript : MonoBehaviour | |
{ | |
private bool _fb; |
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
#!/bin/bash | |
set -e | |
GVERSION="1.9.2" | |
GFILE="go$GVERSION.linux-amd64.tar.gz" | |
GOPATH="$HOME/go" | |
GOROOT="/usr/local/go" | |
if [ -d $GOROOT ]; then | |
echo "Installation directories already exist $GOROOT" |
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
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
func main() { | |
r := gin.Default() |
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
version: "3.1" | |
services: | |
db: | |
image: mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: test1234 | |
volumes: | |
- ./resources:/docker-entrypoint-initdb.d |
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
package main | |
import "syscall/js" | |
func main() { | |
js.Global.Get("document").Call("getElementsByTagName","body").Index(0).Set("textContent","Hello! 세계!") | |
} |
OlderNewer