content
stringlengths
2
6.21k
label
stringclasses
16 values
from django.core.management.base import BaseCommand from users.models import User from users.models import Role class Command(BaseCommand): help = 'Creates a superuser with all required fields' def handle(self, *args, **options): try: if not User.objects.filter(username='admin').exists(): ...
Python
4;</code> * @param index The index of the element to return. * @return The unk3300OMGMGDIHDOH at the given index. */ public int getUnk3300OMGMGDIHDOH(int index) { return unk3300OMGMGDIHDOH_.getInt(index); } /** * <code>repeated uint32 Unk3300_OMGMGDIHDOH = 4;</code...
Java
not print", })) assert.matches('KONG_PG_PASSWORD ENV found with "******"', stdout, nil, true) assert.matches('pg_password = "******"', stdout, nil, true) end) end) describe("custom --nginx-conf", function() local templ_fixture = "spec/fixtures/custom_nginx.template" it("accept a cus...
Lua
; ; Ullrich von Bassewitz, 13.08.1998 ; ; CC65 runtime: helper stuff for mod/div/mul with long signed ints ; ; When negating values, we will ignore the possibility here, that one of the ; values if $80000000, in which case the negate will fail. .export poplsargs .import getlop ...
Assembly
은십자군은 몸과 마음을 다해 스컬지와 싸울 것을 맹세했습니다.","<형제/자매>도 우리와 함께하겠다면 용기를 내어 충의를 증명해 보여주십시오. 잊혀진 땅 남쪽에 있는 뼈의 골짜기에서 언데드 약탈자들을 처치해 주십시오.","이를 수행하면 붉은십자군에서 <형제/자매>를 기꺼이 받아들일 것입니다."}, {"언데드 약탈자 30마리를 처치한 후 나이젤의 야영지에 있는 수사 안톤에게 돌아가야 합니다."}}, [262] = {"의문의 남자", {"내 가족이 몰살당한 날 밤, 그림자 속에서 서성대던 그자가 누구인지 알아 내야겠습니다!","제발, 한 번 더 당신 실력을 발휘해서 그자...
Lua
}.pathways .modal-dialog{width:90%}.pca-pc1-label,.pca-pc2-label{position:absolute;top:72px;line-height:1.2;width:133px;color:#039BE5;text-align:center}.axis line,.axis path{fill:none;stroke:#BBB}.axis text{font-family:sans-serif;fill:#000}.pca-pc1-label span{font-size:18px;font-weight:500}.pca-pc2-label{left:135px;fon...
CSS
title="htmlhelp.default.topic"><link rel="refentry" href="htmlhelp.hhp.html" title="htmlhelp.hhp"><link rel="refentry" href="htmlhelp.hhc.html" title="htmlhelp.hhc"><link rel="refentry" href="htmlhelp.hhp.tail.html" title="htmlhelp.hhp.tail"><link rel="refentry" href="htmlhelp.enumerate.images.html" title="htmlhelp.en...
HTML
acilityId}/bookings/{bookingId}/records/{bookedRecordId}/set-not-realized")] [ProducesResponseType((int)HttpStatusCode.OK)] public async Task<IActionResult> SetBookedRecordAsNotRealized( [FromRoute] Guid bookingId, [FromRoute] Guid facilityId, [FromRoute] Guid bookedR...
C#
ack/Backend' OUTPUT_NODE = True def doit(self, key, tag, data): global cache if key == '*': print(f"[Inspire Pack] CacheBackendDataList: '*' is reserved key. Cannot use that key") cache[key[0]] = (tag[0], (True, data)) return (data,) ```# Documentation - Class name: ...
Markdown
#include <js_native_api.h> #include "../common.h" #include "test_null.h" #define DECLARE_TEST(charset, str_arg) \ static napi_value \ test_create_##charset(napi_env env, napi_callback_info info) { \ napi_value re...
C
{ e = null; try { e = window.atob(responses.Body['EventRecords'][i]); } catch (e) { console.log(e + ' ' + responses.Body['EventRecords'][i]) } x = { 'AuditAppID': ReadShort(e, 0), 'EventID': ReadShor...
HTML
s.set_info_log_level(self.info_log_level.into()); if self.titan.enabled { opts.set_titandb_options(&self.titan.build_opts()); } opts } pub fn build_cf_opts( &self, cache: &Option<Cache>, region_info_accessor: Option<&RegionInfoAccessor>, ) -> Vec<...
Rust
JsonObject().apply { addProperty("no_cache", false) }) return result.withToken() } /** * 获取群成员信息 * * @param groupId 群号 * @param userId QQ 号 * @param noCache 是否不使用缓存(使用缓存可能更新不及时,但响应更快) * @param context Onebot 主动操作的上下文 * @return [ActionData] of [GroupMemberInfoResp] ...
Kotlin
-automation-type="RibbonToggleButton" data-unique-id="Ribbon-Superscript" class="fui-Button r1alrhcs fui-ToggleButton ms-Button ms-ButtonNext ___14uoqws f17fgpbq f1khb0e9 f6zblan f1jnq6q7 f2lugmd f1aa9q02 f16jpd5f f1jar5jt fyu767a fy9rknc figsok6 fwrc4pm fg3gtdo fwii5mg f1palphq f12nxie7 fqrbt79 fepn2xe f1jkagg5 f1osut...
HTML
sinint_real<V:RealValue+BesselSpherJ<isize>+Normed+Trig>(z:V) -> V where V::CT:Exp { if abs(z) < ι(5):V::NT { sinint_series(z) } else if abs(z) < ι(10):V::NT { sinint_bessel_series(z) } else if abs(z) < ι(50):V::NT { V::PI/2 + e1_contfrac(V::CT::I*z).imag() } else { sinint_asympt(z) } } pub ...
Rust
0"] = -134, ["1006015_3_0"] = -135, ["1006015_4_0"] = -136, ["1006016_3_0"] = -137, ["1006016_4_0"] = -138, ["1006017_3_0"] = -139, ["1006017_4_0"] = -140, ["1006018_3_0"] = -141, ["1006018_4_0"] = -142, ["1006019_3_0"] = -143, ["1006019_4_0"] = -144, ["1006020_3_0"] = -145, ["1006020_4_0"] = -1...
Lua
arget()); } } AnimationHandler.INSTANCE.updateAnimations(this); } @Override public boolean isAiDisabled() { return this.isDaytimeMode() || super.isAiDisabled(); } @Override public boolean isSilent() { return this.isDaytimeMode() || super.isSilent(); ...
Java
fine RED_MMU_TEST_DATA_ADDR 0x180000 #define RED_MMU_TEST_DATA_ADDR_PA 0x180000 SECTION .RED_MMU_TEST TEXT_VA = RED_MMU_TEST_ADDR, DATA_VA=RED_MMU_TEST_DATA_ADDR attr_text { Name = .RED_MMU_TEST, hypervisor } attr_data { Name = .RED_MMU_TEST, hypervisor } attr_data { ...
Assembly
页放哪些内容才能吸引更多的用户? | | 翻译商务文件 | 我应该如何翻译这份商务文件以使其更容易理解? | | 分析市场数据 | 根据这个月的销售数据,我们下个季度的销售额会达到多少? | | 生成营销口号 | 请给我们一个能够吸引年轻消费者的营销口号。 | | 推荐旅游路线 | 对于那些喜欢冒险和户外运动的人来说,你推荐哪些旅游路线? | | 操作软件指南 | 我们应该如何设置新的操作系统以确保最佳性能? | | 餐饮推荐 | 在纽约市中心,有哪些适合情侣用餐的浪漫餐厅? ...
Markdown
View on GitHub</span></a> {% else %} <a href="{{ site.github.owner_url }}" id="view-on-github" class="button"><span>View on GitHub</span></a> {% endif %} </section> <hr> <section id="main_content"> {{ content }} </section> <footer> {% if site.gi...
HTML
人民政府工作报告” </h1> <p> 日期:1955-2-8 作者:潘汉年 </p> <em> 潘汉年 </em> <h3> <em> 各位代表: </em> </h3> <p> 现在我代表上海市人民政府向大会作工作报告,请予审查。 </p> <p> 上海市人民政府的工作,根据国家过渡时期的总任务,是要把上海从一个旧的落后的城市逐步改造成为一个社会主义的先进城市。过去五年来,在中国共产党、中央人民政府的领导下,并取得全国各地的支持和援助,在接管工作、抗美援朝斗争、各项社会改革改造运动、经济恢复和经济建设以及在其它各方面的工作中,都取得了一系列的胜利...
HTML
RelativeSizeAxes = Axes.Both, Width = 0f, Alpha = 0f, }, }, playButton = new PlayButton { Anchor = Anchor.Centre, Origin = Anchor.Centre, ...
C#
:19px}.s99qchmh{--T68779821:0 12px 12px var(--shadow-2);-webkit-box-shadow:var(--T68779821);box-shadow:0 12px 12px var(--shadow-2)}.s9fcnxtd{background-image:url(/rsrc.php/v3/yL/r/5J3un1RctgX.png)}.s9j8e0bm{font-family:var(--font-family-code)}.s9k52jnz{--T68779821:0 4px 8px 0 var(--shadow-2),0 0 0 2px var(--accent);-we...
CSS
0-9]+}}: error: immediate must be an integer in range [0, 255] or a multiple of 256 in range [256, 65280] // CHECK-NEXT: subr z0.d, z0.d, #-1 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: subr z0.d, z0.d, #256, lsl #8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 255] or a multiple...
Assembly
243, 126, 155, 254, 186, 141, 244, 156, 208, 118, 95, 62, 120, 122, 135, 20, 99, 174, 204, 38, 34, 254, 14, 200, 159, 48, 93, 190, 223, 198, 155, 191, 195, 4, 181, 61, 43, 200, 178, 230, 176, 27, 103, 145, 169, 157, 217, 227, 190, 77, 187, 91, 82, 183, 128, 139, 100, 173, 206, 121, 207, 0, 10, 192, 135, 84, 159, 10, 17...
C#
JT __opPc__10TObjectPtrCFv, 018007dc /* C++: DataPtr::operator char*() const MPW-mangled: __opPc__7DataPtrCFv */ JT __opPc__7DataPtrCFv, 018007e0 /* C++: RefVar::operator long() const MPW-mangled: __opl__6RefVarCFv */ JT __opl__6RefVarCFv, 01802c84 /* C++: RefStruct::operator long() const MPW-mangled: __opl_...
Assembly
0, Note = "Test Loan", IssuedAt = DateTime.UtcNow, DueDate = DateTime.UtcNow.AddDays(30), LenderId = "1", DueAmount = 100, }; // Act var loanDto = _mapper.Map<LoanDto>(loan); // Assert loanDto.Should().NotBeNull(); ...
C#
{ grid-column: 6; } #col8 { grid-column: 8; } } @stylet AnonymousGridCells { #grid { display: -dart-grid; grid-rows: "header" auto "main" 1fr "footer" auto; grid-columns: 1fr; } #header { grid-row: "header"; grid-column: start; } #main { grid-row: "main"; grid-colum...
CSS
QRS、EDA……这些东西在非Java的技术栈体系内,很难看到全貌,<strong>Java强大的生态环境,就是让你把注意力放到更高层次的架构和业务上来的</strong>。(千万不要觉得,整几个服务RPC一下,加个缓存,加个队列,就能叫架构,那只是系统集成罢了)</p> <p>(全文完)</p> <p><audio controls="controls" style="display: none;"></audio></p> <p><audio controls="controls" style="display: none;"></audio></p> <p><audio controls="controls" style="d...
HTML
true); // msgType return } if (bean.getOssComponentsLicenseList() != null && !bean.getOssComponentsLicenseList().isEmpty()) { LICENSE_KEY = "LICENSE_NAME." + bean.getGridId(); // Declared & Detected License를 전부 사용하지 않는 case if (!hasOssLicense(ossmaster, bean.getOssCompone...
Java
::hdc_wrapper*>(handle)->apply_update(); } void graphics::clip(intptr handle, intptr region) { reinterpret_cast<xtd::drawing::native::hdc_wrapper*>(handle)->hdc().SetClippingRegion(reinterpret_cast<wxRegion*>(region)->GetBox()); reinterpret_cast<xtd::drawing::native::hdc_wrapper*>(handle)->graphics()->Clip(*reinte...
C++
-- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE. -- APDL LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S = lpeg.P, lpeg.R, lpeg.S local M = {_NAME = 'apdl'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local comment ...
Lua
0.945f, 0.766f, 1.714f, 1.714f, 1.714f) curveToRelative(0.945f, 0.0f, 1.714f, -0.766f, 1.714f, -1.714f) curveToRelative(0.0f, -1.284f, 0.428f, -1.714f, 1.714f, -1.714f) curveToRelative(0.945f, 0.0f, 1.714f, -0.766f, 1.714f, -1.714f) curveToRelative(0.0f, ...
Kotlin
ice Srl", "data": [{ "from": 3113113601, "to": 3113114623 }]}, { "name": "it.wime", "info": "Wime Srl", "data": [{ "from": 3109361665, "to": 3109362687 }, { "from": 3112568833, "to": 3112569855 }, { "from": 3117576193, "to": 3117577215 }, { "from": 3588384769, "to": 3588385791 }]}...
JavaScript
FINALLY_BLOCK: u32 = 32768; pub const ZEND_ACC_EARLY_BINDING: u32 = 65536; pub const ZEND_ACC_USES_THIS: u32 = 131072; pub const ZEND_ACC_CALL_VIA_TRAMPOLINE: u32 = 262144; pub const ZEND_ACC_NEVER_CACHE: u32 = 524288; pub const ZEND_ACC_TRAIT_CLONE: u32 = 1048576; pub const ZEND_ACC_CTOR: u32 = 2097152; pub const ZEND...
Rust
e}).apply(null,arguments)}var iA=e=>n5.createElement("svg",iR({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),eh||(eh=n5.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.499 6a3 3 0 0 1 3-3h13a3 3 0 0 1 3 3v10.5a3 3 0 0 1-3 3h-2.36a1 1 0 0 0-.58.186L13.16 21....
JavaScript
t the following conditions are * met: redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer; * redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentat...
C++
import os import pandas as pd import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--csv', type=str, required=True, help='Path to the csv file') parser.add_argument('--train', type=int, required=True, help='Number of training samples') parser.add_argument(...
Python
│ │ ├── _layout.less │ │ ├── _lib.less │ │ ├── _loaders.less │ │ ├── _messages.less │ │ ├── _navigation.less │ │ ├── _pages.less │ │ ├── _popups.less │ │ ├── _rating.less │ │ ├...
HTML
{ Main.essDir = 1; Main.essScale = 0.7f; } } this.DrawItems(); TimeLogger.DetailedDrawTime(22); this.DrawRain(); if (Main.ignoreErrors) { try { this.DrawGore(...
C#
": 3} ).addTo(map_bfd438ffea63082c9a53dafd15b95522); var popup_fe37d8ac217908537b05551ca4f68a54 = L.popup({"maxWidth": "100%"}); var html_838cd4ce471941b32bbf1bfbf4a6beee = $(`<div id="html_838cd4ce471941b32bbf1bfbf4a6beee" style="width: 100.0%; h...
HTML
-2" style=""> <g-emoji alias="rocket" fallback-src="https://github.githubassets.com/assets/1f680-d0ef47fdb515.png" class="d-flex" style="">🚀</g-emoji> </button> </li> <li role="presentation" style=""> <button name="input[content]" id="reactions--reaction_button_component-af7d4e" value="EY...
HTML
provider should I use?</p></b></td></tr> <tr valign=top><td><p>A:</p></td><td><p>There are pros and cons to using any of the providers. Read about the details on each provider in the 3D Digital Audio Services <i><a href="3D Digital Audio Services.html#Section">Section</a></i>. </p><p>In any case, we recommend that you...
HTML
/** * Returns permutation element at a given position Throws * * @param pos * permutation element position * @return permutation element value * @exception IndexOutOfBoundsException * if index is less than 0 or greater than permutation size * ...
Java
$v0, %hi(g_SpawnMoby) /* 31F70BC 8007CAF4 CC58428C */ lw $v0, %lo(g_SpawnMoby)($v0) /* 31F70C0 8007CAF8 00000000 */ nop /* 31F70C4 8007CAFC 09F84000 */ jalr $v0 /* 31F70C8 8007CB00 01003126 */ addiu $s1, $s1, 0x1 /* 31F70CC 8007CB04 440050A0 */ sb $s0, 0x44($v0) /* 31F70D0 8007CB08 04002...
Assembly
return YooAssets.IsNeedDownloadFromRemote(location); } else { var package = YooAssets.GetPackage(packageName); return package.IsNeedDownloadFromRemote(location); } } /// <summary> /// 是否需要从远端更新下载。 /// </s...
C#
eExcessiveNullsInReasonableTime() { var stopwatch = new System.Diagnostics.Stopwatch(); stopwatch.Start(); const int iterations = 1000; var formula = GetNullsFormula(); for (int i = 0; i < iterations; i++) { Extensions.Cre...
C#
"aPrivateKey", new PasswordProtection("the key password" .toCharArray())); PrivateKey privateKey = entry.getPrivateKey(); assertEquals(keyPair.getPrivate(), privateKey); } catch (NoSuchAlgorithmException e) { fail(e.getMessage()); ...
Java
b> <b class="fc">&nbsp; Boolean[] booleanArray3 = new Boolean[]{true, false, false};</b> <b class="fc">&nbsp; Boolean[] booleanArray4 = new Boolean[]{false, false, true};</b> <b class="fc">&nbsp; Vertex v1 = this.sqlgGraph.addVertex(T.label, &quot;A&quot;, &quot;name&quot;, booleanArray1);</b> <b c...
HTML
ut(patcher) } private fun patchChannelList(patcher: PatcherAPI) { patcher.after<`WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$5`>("invoke") { val ret = it.result val channel = `$channel` val channelName = channel.name if (ret != null) { if (...
Kotlin
#!/usr/bin/env python3 #reusing file from spdk/script/getconfig.py import os import re import sys comment = re.compile('^\s*#') assign = re.compile('^\s*(export)\s*([a-zA-Z_]+)\s*(\?)?=\s*([^#]*)') args = os.environ.copy() for arg in sys.argv: m = assign.match(arg) if m: var = m.group(1).strip() ...
Python
mentSecretStoreItem[]; for (let i = 0; i < this.secrets.length; i++) { this.secrets[i] = { index: 0n, secret: undefined }; } } /** * Insert the commitment secret into the store and verify that the * secret is able to derive all prior commitment secrets that we * alrea...
Typescript
scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.utils.viewport.ScreenViewport; import com.kotcrab.vis.ui.VisUI; import com.kotcrab.vis.ui.VisUI.SkinScale; import com.kotcrab...
Kotlin
316396394ebe0fabed7d49670612ec27227210021926692">angelscript.h</a></li> <li>asEP_DISALLOW_GLOBAL_VARS&#160;:&#160;<a class="el" href="angelscript_8h.html#a53c2e8a74ade77c928316396394ebe0fab81c81f4fdeb616dd6487da48a0c3456">angelscript.h</a></li> <li>asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE&#160;:&#160;<a class="el" href=...
HTML
!= nil { return err } // Print the result - the result is a mcp.CallToolResult // Extract text content from content for _, content := range result.Content { if textContent, ok := content.(*mcp.TextContent); ok { fmt.Print(textContent.Text) } } return nil }, } func init() { rootCmd.AddComm...
Go
= parentGroupCopy; } // } else { // System.out.println( "NO MATCH FOR [" + referencedStyleName.toLowerCase() + "] and [" + parent.selector + "]"); } } AttributesGroup targetGroup = getGroup( groupName ); if (targetGroup == null) { //System.out.println("setting group [" + groupName + "...
Java
-corner-all">Effect</h3> <p> Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. </p> </div> </div> <select name="effects" id="effectTypes"> <option value="blind">Blind</option> <option value="bounce">Bounce</option> <opt...
HTML
, U+756f, U+7571-7572, U+7574-757e, U+7581-7582, U+7585-7587, U+7589-758c, U+758f-7590, U+7592-7595, U+7599-759a, U+759c-759d, U+75a2-75a5, U+75b0-75b1, U+75b3-75b5, U+75b7-75b8, U+75ba, U+75bd, U+75bf-75c4, U+75c6, U+75ca, U+75cc-75cf, U+75d3-75d4, U+75d7-75d8, U+75dc-75e1, U+75e3-75e4, U+75e7, U+75ec, U+75ee-75f3, U+...
CSS
e 5 {val}"), GeneralPurpose6(val) => write!(w, "General Purpose 6 {val}"), GeneralPurpose7(val) => write!(w, "General Purpose 7 {val}"), GeneralPurpose8(val) => write!(w, "General Purpose 8 {val}"), Hold(val) => write!(w, "Hold {val}"), Hold2(val) => write!(w, "Hold 2 {val}"), ...
Rust
501" width="0.2168%" height="15" fill="rgb(249,33,26)" fg:x="54" fg:w="4"/><text x="3.2046%" y="511.50"></text></g><g><title>hashbrown::rustc_entry::RustcOccupiedEntry&lt;K,V,A&gt;::into_mut (4 samples, 0.22%)</title><rect x="2.9268%" y="485" width="0.2168%" height="15" fill="rgb(235,183,28)" fg:x="54" fg:w="4"/><text ...
HTML
{ LogScope.Current.ExpectedLogs.Enqueue(new LogMatch() { LogType = type, Message = message }); } /// <summary> /// Verifies that a log message of a specified type appears in the log. A test won't fail from an expected error, assertion, or exception log message. It does fail if an ...
C#
decoration: BoxDecoration( color: Theme.of(context).scaffoldBackgroundColor, borderRadius: BorderRadius.circular(8), boxShadow: const [ BoxShadow( color: Colors.black26, offset: Offset(2, 2), ...
Dart
Mirror-line.HyperMD-header-4, .markdown-preview-section h4 { font-weight: 650; font-size: var(--s-header-4-pre); color: var(--text-normal); } body.is-mobile .HyperMD-header-5, .CodeMirror .CodeMirror-line.HyperMD-header-5, .markdown-preview-section h5 { line-height: 1.2em; font-weight: 650; font-size: var(...
CSS
am AppModule) IsOnePerModuleType() {} // IsAppModule implements the appmodule.AppModule interface. func (am AppModule) IsAppModule() {} // ---------------------------------------------------------------------------- // App Wiring Setup // ---------------------------------------------------------------------------- f...
Go
ER = 80; // 80 demicm.PROP_RANDOM_PER = 60; // 60 demicm.FUNC_DIRTY_PER = 50; demicm.FUNC_NORMAL_PER = 80; demicm.FUNC_RANDOM_PER = 60; // Max recursion level demicm.MAX_RECURSION_DEPTH = 4; // 4 demicm.MAX_RET_RECURSION_DEPTH = 3; // 3 demicm.MAX_RECURSION_WIDE = 10; // 10 demicm.MAX_LOOP = 100 //100 demicm.SPECIA...
JavaScript
@-webkit-keyframes rightSpring{0%{margin-left:0}50%{margin-left:-30px}100%{margin-left:0}}@keyframes rightSpring{0%{margin-left:0}50%{margin-left:-30px}100%{margin-left:0}}@-webkit-keyframes leftSpring{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@keyframes leftSpring{0%{margin-left:0}50%{margin-left:30px}...
CSS
\ref CY_RSLT_ENTERPRISE_SECURITY_SUPPLICANT_ERROR */ cy_rslt_t cy_enterprise_security_join(cy_enterprise_security_t handle); /** ****************************************************************************** * Leaves an enterprise security network (802.1x Access point) * * @param[in] handle : Handle to En...
C
m.fn.isdirectory(log_dir) == 0 then vim.fn.mkdir(log_dir, 'p') end -- Append to log file local file = io.open(log_config.outfile, 'a') if file then file:write(formatted_msg .. '\n') file:close() end end -- Log at specific level local function log_at_level(level_name, level_num, ...) local log_...
Lua
ur sodales ligula in libero. </li> </ul> </body> </html> <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>CSS Test: 'contain: paint' with overflowing text contents, and 'overflow-y: scroll'.</title> <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com"> <link rel="h...
HTML
$t8, ($s6) /* 08EA70 80106000 4600E083 */ div.s $f2, $f28, $f0 /* 08EA74 80106004 C7AA014C */ lwc1 $f10, 0x14c($sp) /* 08EA78 80106008 8FA30178 */ lw $v1, 0x178($sp) /* 08EA7C 8010600C 4602A102 */ mul.s $f4, $f20, $f2 /* 08EA80 80106010 460A2180 */ add.s $f6, $f4, $f10 /* 08EA84 80106014 4602B202 */ mul.s $f8...
Assembly
的每个 tab 页可以看作是一个个的线程。 下面是线程和进程持有资源的区别 ![](https://img2020.cnblogs.com/blog/1515111/202005/1515111-20200515071813686-341668732.png) 线程不像进程那样具有很强的独立性,线程之间会共享数据 创建线程的开销要比进程小很多,因为创建线程仅仅需要`堆栈指针`和`程序计数器`就可以了,而创建进程需要操作系统分配新的地址空间,数据资源等,这个开销比较大。 ## 使用多线程的好处是什么 多线程是程序员不得不知的基本素养之一,所以,下面我们给出一些多线程编程的好处 * 能够提高对用户的响应顺序 * 在流程中的...
Markdown
uid.fromString("00001604-0000-1000-8000-00805F9B34FB")) .addServiceUuid(ParcelUuid.fromString("00001606-0000-1000-8000-00805F9B34FB")) .addServiceUuid(ParcelUuid.fromString("00001608-0000-1000-8000-00805F9B34FB")) .addServiceUuid(ParcelUuid.fromString("00001610-0000-1000-8000-00805F9...
Java
来电 4.来电提醒 5.来电接通 6.去电拨出 when (callInfo.type) { 1 -> sb.append(getString(R.string.incoming_call_ended)) 2 -> sb.append(getString(R.string.outgoing_call_ended)) 3 -> sb.append(getString(R.string.missed_call)) 4 -> sb.append(getString(R.string.inc...
Kotlin
id_deletes_a_floor_v2(validator, deletes_a_floor_v2(api)) except Exception as original_e: with pytest.raises((JsonSchemaException, MalformedRequest)): print(original_e) raise original_e def deletes_a_floor_v2_default_val(api): endpoint_result = api.site_design.deletes_a_floor_v...
Python
ctions. export function checkProofRequestForDuplicates(proofRequest: ProofRequest) { const attributes = attributeNamesToArray(proofRequest) const predicates = predicateNamesToArray(proofRequest) assertNoDuplicates(predicates, attributes) } import * as yup from 'yup'; import { Props } from '~/components/CheckoutI...
Typescript
vim.pack.add({ { src = "https://github.com/nvim-treesitter/nvim-treesitter", version = "main" }, }) -- ensure basic parser are installed local parsers = { "stable" } require("nvim-treesitter").install(parsers) ---@param buf integer ---@param language string local function treesitter_attach(buf, language) -- check i...
Lua
Håralund 56.78333 14.36667 Håralt 56.76667 13.2 Haraliden 65.11667 19.68333 Haraliden 64.4 18.73333 Haraldstorp 59.95 15.38333 Haraldstorp 58.65 14.23333 Haraldsro 56.98333 12.41667 Haraldsmåla 56.88306 16.38306 Haraldsjön 59.85 15.45 Haraldsbo 60.6 15.66667 Haraldsbo 57.61667 16.36667 Haraldsåsen 61.6 13.56667 Harafjä...
C#
adapts to recent shifts, and residual correction provides a final fine-tuning for improved accuracy.\\n {'name': 'additive_smoother_reactive_trend_seasonal_rc_2', 'components': [\\n {'type': 'base_level', 'base_level_method': 'median_last_k_window', 'k_window_size': 50}, # Moderately adaptive base level\\n ...
HTML
</tr> <tr class=""> <th scope="row"></th> <td></td> </tr> </table> </div> <!-- ============================== event details ========================= --> </div> </div> </div> </div> </div> </div> <?php include("../footer.php"); ?> <!-- End Site Content --> </body> </h...
HTML
/* LD C,(HL) */ 0x4E => { debug_system!("LD C,(HL)\n", cpu.debug_mode); let a16_hl = bit_operations::join_words(cpu.registers.r_h as u16, cpu.registers.r_l as u16, 8); let d8 = cpu.fetch_data(memory, a16_hl); cpu.registers.r_c = d8; 2 }, ...
Rust
ields[0], "Strvals.distinctOf()"); builder.WithExpression(fields[1], "Strvals.distinctOf(v => extractNum(v))"); builder.WithExpression( fields[2], "Strvals.distinctOf((v, i) => case when i<2 then extractNum(v) else 0 end)"); builder...
C#
= "text/javascript"; script.id = url; script.src = url; script.onload = onload; script.onerror = onfail; script.loadCheck = loadCheck; if (/MSIE/.test(navigator.userAgent)) { script.onreadystatechange = this.checkReadyState; } document.getElementsByTagName('head')...
JavaScript
anklin St, Fifth Floor, Boston, MA 02110-1301 USA Sam Lantinga slouken@libsdl.org */ #include "symbols.h" /* * Read EdDI version * * Patrice Mandin */ .text .globl SYM(Atari_get_EdDI_version) /*--- Vector installer ---*/ SYM(Atari_get_EdDI_version): #if defined(__mcoldfire__) movel sp@(4),a0 mo...
Assembly
49.62-52.76zM512 225.017c-4.838-34.358-17.274-71.837-35.181-101.196l-31.666 19.716c14.532 24.256 24.132 54.32 28.567 81.48H512zm0 62.006h-38.284C446.264 449.18 243.43 545.046 104.296 414.677L77.92 441.056C242.721 591.777 481.534 484.416 512 287.023zM54.513 342.19c-10.774-25.619-16.657-53.736-17.105-81.75H0c.457 33.142 ...
Dart
} if (i1<n1) { System.out.println(); System.out.print(" "); } else { System.out.println("}"); } } } private static void cdump(int[] n, String[] s) { int max = 2*maxlen(s)+3; StringBuilder sb = new StringBuilder(max); int n2 = n.length; String form...
Java
{ year += 2000; } // Skip the empty segments. while (segments[++index] == string.Empty) { } // The time segment. string timesegment = segments[index]; fileSystem.ModifiedTime = DateTime.Parse(string.Format("{0}-{1}-{2} {...
C#
perty.TypeGVK: var v GroupVersionKind if err := json.Unmarshal(json.RawMessage(p.Value), &v); err != nil { return nil, property.ParseError{Idx: i, Typ: p.Type, Err: err} } k := property.GVK{Group: v.Group, Kind: v.Kind, Version: v.Version} providedGVKs[k] = struct{}{} case property.TypePackage: ...
Go
my father's last request to me now. Well, I went, left all that can no <nobr> it wisest to touch , and I hope it won't hurt your eyes-- will you take your usual walk to the condition of the friends they had not felt the necessity of temporizing his </nobr> </input> <pre> for the present, the future, as you were to...
HTML
at结果集 * * @author AntonyCheng */ @Data @Accessors(chain = true) public class ChatResult implements Serializable { /** * 结果 */ private String content; /** * 思考内容 */ private String reasoningContent; /** * 耗时(单位:毫秒) */ private Long time; /** * Token数 ...
Java
Square(this.upgradingPawn.x,this.upgradingPawn.y); this.removeAllPieces(square); square.classList.add(this.upgradingPawn.chessPiece.toString()); } public movePiece(movement: Movement) { if (movement.type !== MovementType.casting) { const sourceSquare = this.getSquare(movement.from.x, movement.fro...
Typescript
RiText.disposeAll = function() { if (arguments.length) { RiText.dispose(arguments[0]); } else { RiText._disposeArray(RiText.instances); RiText.instances = []; } } RiText.createWords = function(txt, x, y, w, h, fontObj, leading) { return RiText._createRiTexts(txt, x, y, w, h, fontObj,...
JavaScript
.danger_col = {false,false,false,false,false,false} -- set true if this column is near the top s.danger_timer = 0 -- decides bounce frame when in danger s.difficulty = difficulty or 2 s.speed = speed or 1 -- The player's speed level decides the amount of time -- the stack takes to ris...
Lua
�年多中间,还进行了土地改革、镇压反革命和抗美援朝三大运动,消除了内外敌人的阻碍和破坏,保障了生产建设工作的进行,加上全国人民的努力和苏联的无私援助,才能使生产不但得到了恢复,而且得到发展。全国人民的生活,才能在发展生产的基础上,得到了提高。从一九五三年起我们开始第一个五年计划建设,日子是一天一天更美好了,但工作还是很艰巨的。 </p> <p> 过渡到社会主义去,基本的问题在於发展生产力。要发展生产力,就必须逐步改善生产关系,逐步消灭阻碍生产力发展的人剥削人的制度,从而逐步达到人人劳动、大家愉快、大家富裕的理想境界。 </p> <p> 当工人群众感觉自己的劳动果实主要的部分被剥削的时候,他们是不会努力生产...
HTML
;---------------------------------------------------------------------------- ; File name: LACE_EMU.S Revision date: 1998.08.23 ; Created by: U.R. Andersson Creation date: 1994.07.02 ; Project: Lace_Emu Version: 4.0 ;---------------------------------------------------------------------------- nolist include L_S...
Assembly
Tomato, Tomato1, Tomato2, Tomato3, Tomato4, Transparent, Turquoise, Turquoise1, Turquoise2, Turquoise3, Turquoise4, Violet, VioletRed, VioletRed1, VioletRed2, VioletRed3, VioletRed4, Wheat, Wheat1, Wheat2, Wheat3, Wheat4, White, ...
Kotlin
,var(--fd-g),var(--fd-b),.4);--fd05:rgba(var(--fd-r),var(--fd-g),var(--fd-b),.5);--fd07:rgba(var(--fd-r),var(--fd-g),var(--fd-b),.7);--fd08:rgba(var(--fd-r),var(--fd-g),var(--fd-b),.8);--fd09:rgba(var(--fd-r),var(--fd-g),var(--fd-b),.9);--fd10:rgba(var(--fd-r),var(--fd-g),var(--fd-b),1);--thm-c-bg-size:80px 80px,auto,a...
CSS
1 <BR>Commands : RDISARM, ROPEDISARM <BR>Usage : ropedisarm ([TARGET NAME]) <BR>Example : ropedisarm orc <BR>Short(s) : rdisarm <BR>The fighter attempts to use a help or wielded rope to hook and disarm the<BR>target, slinging their weapon onto the floor and out of reach. To succeed, the<BR>player must be holding ...
HTML
oZWxwZXJzL29iamVjdFdpdGhvdXRQcm9wZXJ0aWVzLmpzP2ZiYTAiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydHMuX19lc01vZHVsZSA9IHRydWU7XG5cbmV4cG9ydHMuZGVmYXVsdCA9IGZ1bmN0aW9uIChvYmosIGtleXMpIHtcbiAgdmFyIHRhcmdldCA9IHt9O1xuXG4gIGZvciAodmFyIGkgaW4gb2JqKSB7XG4gICAgaWYgKGtleXMuaW5kZXhPZihpKSA+PSAwKSBjb250aW51ZTtcbiA...
JavaScript
.57 .asciz " " .zerofill __DATA,__bss,_asm2C_OUT.indexPalette,4,2 ## @asm2C_OUT.indexPalette L_.str.58: ## @.str.58 .asciz "error: indexPalette>767 %d\n" L_.str.59: ## @.str.59 .asciz "unknown OUT %d,%d\n" .section __DATA,__data _asm2C_IN.vblTick: ...
Assembly
() const { gridmap3d::point3d obj_bounds = (bbx_max - bbx_min); obj_bounds /= 2.; return obj_bounds; } template <class NODE> point3d OccupancyGrid3DBase<NODE>::getBBXCenter() const { gridmap3d::point3d obj_bounds = (bbx_max - bbx_min); obj_bounds /= 2.; return bbx_min + obj_bounds; } //-- Occupancy...
C++