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 AOT; | |
using System; | |
using System.Runtime.InteropServices; | |
using UnityEngine; | |
public class DebugCPP : MonoBehaviour | |
{ | |
// Use this for initialization | |
void OnEnable() |
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
Shader "Unlit/SeeThrough" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1.0, 1.0, 1.0, 1.0) | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Transparent" "Queue" = "Transparent" } | |
LOD 100 |
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
Shader "Hidden/Bloom" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
HLSLINCLUDE | |
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl" | |
struct appdata |
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
local Entity = { | |
} | |
local EntityMeta = { | |
__index = function(entity, key) | |
local o = rawget(Entity, key) | |
if(o ~= nil) then | |
return o | |
end | |
local component_id = key | |
if(type(component_id) == "string") then |
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
/* | |
* Flattens a nested array into a one-dimentional array of the exact same order | |
* | |
* @param {Array} arr | |
* @return {Array} result | |
*/ | |
function flattenArray(arr) { | |
// Internal function to flatten the input array recursively | |
function flattenArrayRecursively(arr, result) { | |
for(let i = 0; i < arr.length; i++) { |
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
html_doc = """ | |
<html><head><title>The Dormouse's story</title></head> | |
<body> | |
<p class="title"><b>The Dormouse's story</b></p> | |
<p class="story">Once upon a time there were three little sisters; and their names were | |
<a href="http://example.com/elsie" class="sister" id="link1">Elsie</a>, | |
<a href="http://example.com/lacie" class="sister" id="link2">Lacie</a> and | |
<a href="http://example.com/tillie" class="sister" id="link3">Tillie</a>; | |
and they lived at the bottom of a well.</p> |
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
var Sequelize = require('sequelize'); | |
var DataTypes = Sequelize.DataTypes; | |
var sequelize = new Sequelize( | |
// ignore configs | |
); | |
// Represents user account information | |
var User = sequelize.define("user", { | |
username : { type : DataTypes.STRING }, | |
password : { type : DataTypes.STRING }, |
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
const originalData = [ | |
{ name: 'jch', age: 30, score: 90, sex: 1, lesson: 'math' }, | |
{ name: 'oh', age: 31, score: 80, sex: 1, lesson: 'math' }, | |
{ name: 'jia', age: 27, score: 70, sex: 0, lesson: 'math' }, | |
{ name: 'jch', age: 30, score: 80, sex: 1, lesson: 'english' } | |
]; | |
function findAgeGreaterThan(age) { | |
return originalData.filter((obj) => obj['age'] > age); | |
} |
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
function sumTwoLargerNum(a, b, c){ | |
var min = a <= b ? a : b; | |
min = min <= c ? min : c; | |
return a + b + c - min; | |
} |
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 net.linni.webservice.controller.advice; | |
import net.linni.webservice.exception.AbstractRestAPIException; | |
import net.linni.webservice.exception.OperationFailureException; | |
import net.linni.webservice.exception.UnauthorizedOperationException; | |
import net.linni.webservice.model.Response; | |
import net.linni.webservice.util.ResponseCode; | |
import net.linni.webservice.util.ResponseFactory; | |
import org.springframework.beans.TypeMismatchException; |
NewerOlder