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
| <zone> | |
| <name>video-poker</name> | |
| <isCustomLogin>true</isCustomLogin> | |
| <isForceLogout>false</isForceLogout> | |
| <applyWordsFilterToUserName>true</applyWordsFilterToUserName> | |
| <applyWordsFilterToRoomName>true</applyWordsFilterToRoomName> | |
| <applyWordsFilterToPrivateMessages>true</applyWordsFilterToPrivateMessages> | |
| <isFilterBuddyMessages>true</isFilterBuddyMessages> | |
| <maxUsers>1000</maxUsers> | |
| <maxUserVariablesAllowed>10</maxUserVariablesAllowed> |
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 <CommonCrypto/CommonCrypto.h> | |
| + (void)generateKeyPair:(NSUInteger)keySize { | |
| OSStatus sanityCheck = noErr; | |
| SecKeyRef publicKeyRef = NULL; | |
| SecKeyRef privateKeyRef = NULL; | |
| NSData *publicTag = [@"com.apple.sample.privatekey" dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSData *privateTag = [@"com.apple.sample.privatekey" dataUsingEncoding:NSUTF8StringEncoding]; |
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 'dart:async'; | |
| import 'dart:isolate'; | |
| import 'dart:io'; | |
| Future<void> firstFunc()async{ | |
| print('First comment: thread ' + Isolate.current.debugName!); | |
| await Future.delayed(Duration(seconds:2000)); | |
| print('Second comment: ' + Isolate.current.debugName!); | |
| } | |
| void secondFunc(){ |
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
| fun main() { | |
| val str = "abc-5xyz-12k-9l--p-9" | |
| val reg = Regex("-\\d") | |
| val matchers = reg.findAll(str) | |
| val numbers = matchers.map { | |
| it.value.toInt() | |
| } | |
| val numberCounts = numbers.groupBy { it } | |
| .map { it.key to it.value.size} | |
| .toMap() |
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
| package com.tvd12.kotlin.examples.databinding | |
| import com.fasterxml.jackson.annotation.JsonProperty | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| fun main() { | |
| val json = """ | |
| [ | |
| { | |
| "object":"Book object in json string", |
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
| navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; | |
| window.onbeforeunload = function(e){ | |
| hangup(); | |
| } | |
| var sendChannel, receiveChannel; | |
| var sendButton = document.getElementById("sendButton"); | |
| var sendTextarea = document.getElementById("dataChannelSend"); | |
| var receiveTextarea = document.getElementById("dataChannelReceive"); |
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
| package com.tvd12.example.concurrent.sync; | |
| public class VolatileBooleanExample { | |
| private volatile boolean active; | |
| private static int number; | |
| public void prepare() throws InterruptedException { | |
| new Thread(() -> { | |
| System.out.println("application preparing ..."); |
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
| Classfile /Users/tvd12/tmp/VolatileBooleanExample.class | |
| Last modified Aug 14, 2021; size 1783 bytes | |
| MD5 checksum df4780a626dc6a9221674f383a9459f2 | |
| Compiled from "VolatileBooleanExample.java" | |
| public class VolatileBooleanExample | |
| minor version: 0 | |
| major version: 52 | |
| flags: ACC_PUBLIC, ACC_SUPER | |
| Constant pool: | |
| #1 = Methodref #20.#41 // java/lang/Object."<init>":()V |
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
| using System; | |
| using System.Threading; | |
| using com.tvd12.ezyfoxserver.client.io; | |
| using com.tvd12.ezyfoxserver.client.evt; | |
| using com.tvd12.ezyfoxserver.client.request; | |
| using com.tvd12.ezyfoxserver.client.config; | |
| using com.tvd12.ezyfoxserver.client.setup; | |
| using com.tvd12.ezyfoxserver.client.handler; | |
| using com.tvd12.ezyfoxserver.client.constant; | |
| using com.tvd12.ezyfoxserver.client.entity; |
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
| /* | |
| * Copyright 2022 youngmonkeys.org | |
| * | |
| * Licensed under the ezyplatform, Version 1.0.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://youngmonkeys.org/licenses/ezyplatform-1.0.0.txt | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
OlderNewer