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
[02:46:52] [main/INFO]: ModLauncher running: args [--username, Hoya82, --version, 1.17.1, --gameDir, ..\..\instances\Valhelsia 4 1 17, --assetsDir, ..\..\datastore\assets, --assetIndex, 1.17, --uuid, a1eb9c92d1154dbca02fa41b6365df98, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 37.1.1, --fml.mcVersion, 1.17.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210706.113038, --width, 854, --height, 480] | |
[02:46:52] [main/INFO]: ModLauncher 9.0.7+91+master.8569cdf starting: java version 17.0.1 by Eclipse Adoptium | |
[02:46:55] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=union:/C:/Users/hoya/AppData/Roaming/gdlauncher_next/datastore/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar%2316! Service=ModLauncher Env=CLIENT | |
[02:46:55] [main/INFO]: Found mod file absentbydesign-1.17.1-1.6.0.jar of type MOD with locator {mods folder locator at C:\Users\hoya\AppData\Roaming\gdlauncher_next\instances\Valhelsia 4 1 17 |
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 googleapiclient.discovery | |
def list_directories(bucket, prefix): | |
"""Returns a list of directory of the objects within the given bucket.""" | |
service = googleapiclient.discovery.build('storage', 'v1') | |
# Create a request to objects.list to retrieve a list of objects. | |
req = service.objects().list( | |
bucket=bucket, | |
prefix=prefix, |
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 stream = require('stream'); | |
class Producer extends stream.Readable { | |
constructor(options) { | |
options = Object.assign({ | |
highWaterMark: 5, | |
objectMode: true | |
}, options); | |
super(options); |
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
#include <stdio.h> | |
#include <regex.h> | |
#include <string.h> | |
void getIni(char *result, const char *iniStr, const char *name) { | |
regex_t re; | |
char pattern[128]; | |
regmatch_t groups[2]; | |
sprintf(pattern, "\\s*%s\\s*=\\s*([^\r\n]+)", name); |
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
'use strct' | |
const _ = require('lodash') | |
const LETTERS = Array.from("23456789CFGHJMPQRVWX") | |
const R_LETTERS = _.invert(LETTERS) | |
const ELEVENTH = (function() { | |
const dy = 0.000025 | |
const dx = 0.00003125 |
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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
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 java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
class Main { | |
public static void main(String[] args) { | |
String s = "여기는.어디.입니까-12"; | |
Pattern p = Pattern.compile("^([^.]+\\.[^.]+\\.[^-.]+)(?:-([0-9]{2}))?$"); | |
Matcher m = p.matcher(s); | |
if(m.find()) { |
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
/* filename: diffusion.c | |
* compile: | |
* gcc -O3 -std=gnu99 -c diffusion.c | |
* gcc -shared -o diffusion.so diffusion.o | |
* | |
* .so file place /usr/lib or /usr/local/lib or set LD_LIBRARY_PATH for custom location | |
*/ | |
void evolve(int w, int h, double **in, double **out, double D, double dt) { | |
int i, j; |
NewerOlder