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
// soru: ilk row test sayisini verir. testler de labirentlerin kac col'a kac row oldugunu veren satirla baslar. | |
// kac test verilirse hepsinin labirentlerinde gidilebilecek en uzun yolu hesaplayan bir program yazin. | |
// .: acik yol, #: kapali yol | |
/** | |
ornek: | |
1 | |
3 3 | |
#.# | |
#.. |
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
export const TRIANGLE_PARTICLES_OPTIONS = { | |
background: { | |
color: { | |
position: 'cover' | |
} | |
}, | |
fullScreen: false, | |
fpsLimit: 120, | |
particles: { | |
color: { |
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
getFullPath(path, params = null, query = null) { | |
let ret = path; | |
if (params) { | |
for (const key in params) { | |
if (Object.prototype.hasOwnProperty.call(params, key)) { | |
ret = ret.replace(`:${key}`, params[key]); | |
} | |
} | |
} |
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
<template> | |
<div> | |
{{`${doubleDigits(h)} : ${doubleDigits(m)} : ${doubleDigits(s)}`}} | |
</div> | |
</template> | |
<script> | |
export default { | |
props: { | |
endTime: { |
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
//model | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace YNY.Sync | |
{ | |
public class Column | |
{ | |
public Column() |
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
public static class Utils | |
{ | |
public static void QueryGenerator(ref NpgsqlCommand cmd, string tableName, string conflictStr, string returningStr, Params prms, int index) | |
{ | |
PropertyInfo[] props = null; | |
List<Column> columns = new List<Column>(); | |
Dictionary<string, bool> confMap = new Dictionary<string, bool>(); | |
Dictionary<string, object> paramMap = new Dictionary<string, object>(); | |
List<string> conflicts = conflictStr.Split(',').ToList(); |
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
func dumpInterfaceArray(args interface{}) *int { | |
val := reflect.ValueOf(args) | |
fmt.Println(val.Kind()) | |
if val.Kind() == reflect.Slice { | |
ln := val.Len() | |
return &ln | |
} else if val.Kind() == reflect.Struct { | |
if val.FieldByName("List").IsValid() && !val.FieldByName("List").IsNil() { | |
ln := val.FieldByName("List").Len() | |
return &ln |