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 sys | |
| import pymongo | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from datetime import datetime | |
| if len(sys.argv) < 2 : | |
| print("need player id, abort.") | |
| exit() |
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
| // initializing | |
| var renderer = PIXI.autoDetectRenderer(800, 600, { antialias: true, backgroundColor : 0xf7f7f7 }); | |
| renderer.view.style.borderStyle = "solid"; | |
| renderer.view.style.borderColor = "#bbbbbb"; | |
| renderer.view.style.borderWidth = "1px"; | |
| document.body.appendChild(renderer.view); | |
| // create the root of the scene graph | |
| var stage = new PIXI.Container(); | |
| stage.interactive = true; |
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 os | |
| import time | |
| import datetime | |
| currentPath = os.path.dirname(os.path.abspath(__file__)) | |
| filenames = os.listdir(currentPath) | |
| for filename in filenames: | |
| # full file path of files in current directory |
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
| Shader "Custom/NormalMapShader" { | |
| Properties { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _LightColor("LightColor", Color) = (1,1,1,1) | |
| _MainTex("Albedo (RGB)", 2D) = "white" {} | |
| _SpecularMap("SpecularMap (RGB)", 2D) = "white" {} | |
| _NormalMap("NormalMap", 2D) = "white" {} | |
| _MainLightPosition("MainLightPosition", Vector) = (0,0,0,0) | |
| } | |
| SubShader{ |
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
| %option noyywrap | |
| %option yylineno | |
| %{ | |
| //#include "sym.h" | |
| #include "coma.tab.h" | |
| %} |
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
| #include <windows.h> | |
| #include <stdio.h> | |
| #define WIDTH 120 | |
| #define HEIGHT 30 | |
| float playerX = 0; | |
| float playerY = 0; | |
| float dx = 0,dy = 0; |
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
| #include <iostream> | |
| #include <vector> | |
| #include <set> | |
| using namespace std; | |
| int main(){ | |
| int testcase = 0; | |
| cin>>testcase; |
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
| #include <iostream> | |
| #include <sstream> | |
| using namespace std; | |
| typedef int uint; | |
| std::string LagrangeGenerator(const uint k){ | |
| uint** arr = new uint*[k]; | |
| for(uint i=0;i<k;i++){ arr[i] = new uint[k]; } |
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
| #include<iostream> | |
| #include<sstream> | |
| #include<array> | |
| using namespace std; | |
| typedef array<array<char, 5>, 5> char5x5; | |
| typedef array<array<int, 5>, 5> int5x5; | |
| int inline safeAccess(const int5x5& table, int i, int j) | |
| { |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <dirent.h> | |
| #include <time.h> | |
| #include <sys/stat.h> | |
| #include <sys/types.h> |