content
stringlengths
2
6.21k
label
stringclasses
16 values
huff.values[total_count] = kJpegHuffmanAlphabetSize; space -= (1 << (kJpegHuffmanMaxBitLength - max_depth)); if (space < 0) { BRUNSLI_LOG_INFO() << "Invalid Huffman code lengths." << BRUNSLI_ENDL(); jpg->error = JPEGReadError::INVALID_HUFFMAN_CODE; return false; } else if (space > 0 &&...
C++
} else { relationships.push({ from: modelName, to: relatedModel, name: relationName, type: relationType, cardinality: relationCardinality, description: method === 'hasOne' ? 'has one' : 'has many', foreignKey: foreignKey ...
JavaScript
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved. // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threadin...
C#
{ return ( format === "png" || format === "gif" ) } async init() {} async convert(basePath: string, format: string, frames: number, fps: number) { const inputPath = basePath + "-%05d.png" const outputPath = basePath + "." + this.getExtension(format) const command = [ "ffmp...
Typescript
(Location.class, "1000001")); types.add(BaseOBObject.class); parameters.add(null); types.add(BaseOBObject.class); parameters.add(true); types.add(Boolean.class); final String procedureName = "C_GetTax"; CallStoredProcedure.getInstance().call(procedureName, parameters, types); } /** ...
Java
v a14, a8 2: # loop h EE.VLD.128.XP q0, a13, a6 loopgtz a10, 3f # loop w EE.VLD.128.XP q1, a13, a6 EE.VMAX.S16 q7, q7, q0 EE.VLD.128.XP q0, a13, a6 EE.VMAX.S16 q7, q7, q1 3: bbci a9, 0, 4f # w left 3 EE.VLD.128.XP q1, a13, a6 EE.VMAX.S16 q7, q7, q0 EE.VLD.128.XP q0, ...
Assembly
lf): ''' Gets the properties of the specified Batch Account :return: deserialized Batch Account instance state dictionary ''' self.log("Checking if the Batch Account instance {0} is present".format(self.name)) try: response = self.batch_account_client.batch_ac...
Python
16 == 31) rowbits = 16; else if (dmap4[i].row17 == 31) rowbits = 17; else rowbits = 18; if (memtype == MEM_DDR3) { if (dmap1[i].ca11 != 0x3f) colbits = 12; else colbits = 10; } d = &drp[i]; /* DIMM0 is present if rank0 and/or rank1 is enabled */ ranks_of_dimm[0] = d->rken0 + d->rk...
C
ng SentBy { get; protected set; } #region Encoder class /// <summary> /// <para>Encoder for <see cref="PrimaryTeamRequestAcceptedDetails" />.</para> /// </summary> private class PrimaryTeamRequestAcceptedDetailsEncoder : enc.StructEncoder<PrimaryTeamRequestAcceptedDetails> ...
C#
()).map(t=>{const s=Number(t.tagName[1]);return{element:t,title:yt(t),link:"#"+t.id,level:s}});return Pt(e,o)}function yt(o){let e="";for(const t of o.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}...
JavaScript
r0, lsr #0x10 moveq r7, #0x13 moveq r5, #1 beq _06016BBC ldrh r0, [r4, #0xc] cmp r0, #1 bne _060167C4 mov r0, r8 bl CAM_GetStaState cmp r0, #0x20 bls _06016788 mov r0, r8, lsl #0x10 mov r0, r0, lsr #0x10 mov r1, #0x20 bl CAM_SetStaState add r0, sl, #0x1e mov r1, #1 bl MLME_IssueDeAuthIndication _060167...
Assembly
garnian seed" x 1..3 chance (1 of 6) "Jute seed" x 1..2 chance (1 of 6) "Yanillian seed" x 1..2 chance (1 of 9) "Krandorian seed" x 1..2 chance (1 of 17) "Wildblood seed" x 1 chance (1 of 34) } } /** Tier 3 general seed drops: low-level flower and herb se...
Kotlin
("androidx.core:core-ktx:1.17.0") implementation("androidx.core:core-splashscreen:1.0.1") implementation("androidx.activity:activity-ktx:1.10.1") implementation("androidx.fragment:fragment-ktx:1.8.9") implementation("androidx.cardview:cardview:1.0.0") implementation("androidx.preference:preference-k...
Kotlin
48200}, /*Unicode: U+044c (ь)*/ {.w_px = 15, .glyph_index = 48800}, /*Unicode: U+044d (э)*/ {.w_px = 24, .glyph_index = 49400}, /*Unicode: U+044e (ю)*/ {.w_px = 15, .glyph_index = 50360}, /*Unicode: U+044f (я)*/ #endif }; lv_font_t lv_font_dejavu_40_cyrillic = { .unicode_first = 1040, /*First ...
C
ransposed()); } #[test] fn is_identity() { let t = Transform::new_m(Matrix4x4::<f32>::identity()); assert!(t.is_identity()); let t = Transform::new([ [1.0, 0.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 0.0, 1....
Rust
return(self.base:RotateByCameraData(cameraData)) yield_return(self.base:MoveByAngle(270,false)) --W print("frame index: 158") yield_return(self.base:WaitFrames(15)) endPos = CS.UnityEngine.Vector3( 2198.421 , 211.8099 , -999.7728 ) cameraData.cameraSpherical=CS.UnityEngine.Vector3( -2.013157 , 0.1134464 ...
Lua
savePreferences() } }) } override fun render(delta: Float) { setupScreen() game.draw(delta) } private fun setupScreen() { Gdx.gl.glClearColor(Constants.BACKGROUND_COLOR.r, Constants.BACKGROUND_COLOR.g, Constants.BACKGROUND_COLOR.b, Constants.BACKGROUND_COLOR...
Kotlin
}, { "sv", "\uC2A4\uC6E8\uB374\uC5B4" }, { "sw", "\uC2A4\uC640\uD790\uB9AC\uC5B4" }, { "swa", "\uC2A4\uC640\uD790\uB9AC\uC5B4" }, { "swe", "\uC2A4\uC6E8\uB374\uC5B4" }, { "syc", "\uC2DC\uB9AC\uC544\uC5B4(\uACE0\uC804)" }, { "syr", "\uC2DC\uB9AC\uC...
Java
P_idir4 = avx3f(P_idir.x, P_idir.y, P_idir.z); # endif # if BVH_FEATURE(BVH_HAIR) || !defined(__KERNEL_AVX2__) org4 = avx3f(avxf(P.x), avxf(P.y), avxf(P.z)); # endif num_hits_in_instance = 0; isect_array->t = isect_t; ++stack_ptr; kernel_asse...
C
egnability_aura_inv") else flag = false end end -- --print("----------Delete ") for i = 1, #tbuf do --for i,index in pairs(tbuf) do table.remove(ability.tAlliesPal,tbuf[i]) end -- -- --print("--------insert------------") -- for i = 1, #table_target do if table_target[i] ~= caster then if n...
Lua
28?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new ...
JavaScript
: GPSDirectoryEntry { protected SRational[] mValue; public SRationalGPSDirectoryEntry(FileReader aPefFile, ushort aTagID) : base(aPefFile, aTagID) { uint currentOffset = mPefFile.Position(); mPefFile.Seek(mOffset, System.IO.SeekOrigin.Begin); mValue = new SRational[mValueCount]; for (int i = 0; ...
C#
语言,请注意,会有成千上万个坑等 着业余语言设计师去跳。 ——吉多·范罗苏姆 12-25 let i, t, r = 7, w = 1, s = 12, c = ".~'O'~.*"; Array(s).fill().map((_, k) = >{ for (i = 0, t = ""; i < w ||(w + = 2, 0); i++) t + = c[_ = r, r = (r + 1)% 6,_]; console.log(Array(s - k).join("")+ t); }); [ Event ] 1990 年 12 月 25 日,万维网运行的必要工具搭建完成。 这一天,伯纳斯-李和罗伯特·卡里奥成功通...
Typescript
> <img src="{{axisSpec.spec}}" width="{{width}}"/> </figure> </td> {% endif %} {% if (axisSpec.roughness is defined) %} <td> <figure> <img src="{{axisSpec.roughness}}" width="{{width}}"/> </figure> </td> {% endif %} {% if (axisSpec.total is defined) %} ...
HTML
ErkJggg==');height:8px;width:9px}@media only screen and (-webkit-min-device-pixel-ratio: 1.3020833333333333),only screen and (min-resolution: 125dpi),only screen and (-webkit-min-device-pixel-ratio: 1.3),only screen and (min-resolution: 1.3dppx){.comment-action{background-size:100% 100%}.comment-close{background-image:...
CSS
hm cl"> <a href="https://www.mcbbs.net/home.php?mod=spacecp&amp;ac=favorite&amp;type=thread&amp;id=1470160&amp;formhash=1d52e78e" id="k_favorite" onclick="showWindow(this.id, this.href, &#39;get&#39;, 0);" onmouseover="this.title = $(&#39;favoritenumber&#39;).innerHTML + &#39; 人收藏&#39;" title="收藏本帖"><i><img src="https:...
HTML
without specific prior written permission. ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE...
C++
/* Written by Richard P. Curnow, SuperH (UK) Ltd. Tight version of mempy for the case of just copying a page. Prefetch strategy empirically optimised against RTL simulations of SH5-101 cut2 eval chip with Cayman board DDR memory. Parameters: r2 : source effective address (start of page) r3 : destina...
Assembly
bel="Height", style=mystyle) Result_worksheet.write(0, 5, label="x_position", style=mystyle) Result_worksheet.write(0, 6, label="y_position", style=mystyle) for m in range(0, len(self.ProcessList)): if self.ProcessList[m].Graphical is None: raise ValueError( ...
Python
if (context == "@media") state.stack[state.stack.length-1] = "@media{"; else state.stack.push("{"); } else if (type == "}") state.stack.pop(); else if (type == "@media") state.stack.push("@media"); else if (context == "{" && type != "comment") state.stack.push("rule"); return style...
JavaScript
or * Access index move.b uslMD5(a5),d0 lsr.b #3,d0 and.w #$1f,d0 * 5-bit index! move.b d0,d1 * store loaded index for the next time addq.b #1,d1 move.b d1,uslLoadedIndex(a5) lsl #3,d0 * 8 byte element index move.l uslIndexPtr(a5),a0 movem.l 4(a0,d0...
Assembly
let (master_secret_key, master_chain_code) = master_key_from_seed(&seed_bytes); let mut secret_key = master_secret_key; let mut chain_code = master_chain_code; for mut val in iterator { let mut hardened = false; if val.contains('\'') { hardened = true;...
Rust
if _, err := exec.LookPath(path); err != nil { log.Printf("❌ [TAILSCALE DEBUG] Binary not found or not executable: %v", err) return false } } // Try version command first (less likely to require permissions) cmd := sm.executeCommand(path, "version") output, err := cmd.Output() if err != nil { log.Print...
Go
'逰=yóu', '週=zhōu', '進=jìn', '逳=yù', '逴=chuō', '逵=kuí', '逶=wēi', '逷=tì', '逸=yì', '逹=dá', '逺=yuǎn', '逻=luó', '逼=bī', '逽=nuò', '逾=yú', '逿=dàng', '遀=suí', '遁=dùn', '遂=suì', '遃=yǎn', '遄=chuán', '遅=chí', '遆=dì,tí', '遇=yù', '遈=shí', '遉=zhēn', '遊=yóu', '運=yùn', '遌=è', ...
Dart
="option" id="emoji-vibration_mode" data-value=":vibration_mode:" data-emoji-name="vibration_mode" data-text="vibration_mode"> <g-emoji alias="vibration_mode" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f3.png" class="emoji-result">📳</g-emoji> vibration_mode </li...
HTML
-0.9,2-2V3C23,1.9,22.1,1,21,1z M21,17H7V3h14V17z M13,15l4-8V5h-6v2h4l-4,8H13z"/></g> <g id="filter-8"><path d="M3,5H1v16c0,1.1,0.9,2,2,2h16v-2H3V5z M21,1H7C5.9,1,5,1.9,5,3v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V3C23,1.9,22.1,1,21,1z M21,17H7V3h14V17z M13,15h2c1.1,0,2-0.9,2-2v-1.5c0-0.8-0.7-1.5-1.5-1.5c0.8,0,1.5-0.7,1.5-...
HTML
ttfp_face) -> i16 { face_from_ptr(face).vertical_ascender().unwrap_or(0) } /// @brief Returns a vertical face descender. /// /// This function is affected by variation axes. /// /// @return `0` when `vhea` table is not present. #[no_mangle] pub extern "C" fn ttfp_get_vertical_descender(face: *const ttfp_face) -> i...
Rust
gTopic => CoreConsts.WAVE_TOPIC; /// <summary> /// Returns the filter instance name /// </summary> public string Name => m_Name; /// <summary> /// Returns the filter order in filter registry. Order is used for URI pattern matching /// </summary> public int Order => m_Order; /// <...
C#
mns.first; stateManager.hideColumn(firstColumn, true); expect(stateManager.refRows.length, 2); { final rowGroup = stateManager.refRows[0]; expect(rowGroup.cells['column2']!.value, '1'); expect(rowGroup.type.group.children.length, 3); } { final rowGroup =...
Dart
*geth** | 1.16.4 | Go implementation of the Ethereum protocol | https://geth.ethereum.org/ | | **geth-utils** | 1.16.4 | Additional utilities for Geth (like abigen, bootnode, evm, puppeth) | https://geth.ethereum.org/ | | **gettext** | 0.26-1 | GNU Internationalization utilities | https://www.gnu.org/software/gettext/ ...
HTML
u624b\uff09\u795d\u4f60\u4eec\u83b7\u5f97\u66f4\u5927\u6210\u529f\uff01", "type": "paragraph"}, {"text": "\u9972\u517b\u5458\uff1a\u5168\u9760\u4f60\u8001\u4eba\u5bb6\u7684\u6559\u5bfc\uff01", "type": "paragraph"}, {"text": "\u6bdb\u4e3b\u5e2d\uff1a\u4e3b\u8981\u662f\u4f60\u4eec\u81ea\u5df1\u7684\u52aa\u529b\u3002", "t...
HTML
/* * BSD LICENSE * Copyright (c) 2021 Samsung Electronics Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain th...
C
_meters bsr tune+$26 movem.l (sp)+,d0-a6 rte show_pic lea picture,a0 move.l scr_now,a1 move.w #(32000/4)-1,d0 .loop move.l (a0)+,(a1)+ dbf d0,.loop rts super_mode clr.l -(sp) move.w #32,-(sp) trap #1 addq.w #6,sp move.l d0,save_stk rts user_mode move.l save_stk,-(sp) move.w #32,-(sp) trap #1 addq...
Assembly
"A", 25 ], [ "8281", "a", 25 ], [ "829f", "ぁ", 82 ], [ "8340", "ァ", 62 ], [ "8380", "ム", 22 ], [ "839f", "Α", 16, "Σ", 6 ], [ "83bf", "α", 16, "σ", 6 ], [ "8440", "А", 5, "ЁЖ", 25 ], [ "8470", "...
JavaScript
int it = m_lstDownloaders.Find( pDownloader ); if ( it == m_lstDownloaders.InvalidIndex() ) { AssertMsg( 0, "Downloader now found in session block downloader list! This should never happen!" ); return; } CClientRecordingSessionBlock *pBlock = (CClientRecordingSessionBlock *)pDownloader->GetUserData(); Asse...
C++
zed M.config = { -- REVISIT lewrus01 (09/08/24): default to true when we switch to wasm auto_install = false, auto_update = true, ensure_install = {}, ignore_install = {}, install_dir = vim.fs.joinpath(std_data, 'ts-install'), parsers = {}, } --- Apply user configuration. --- @param user_config ts_instal...
Lua
(currentNode)-[r:LINKED_TO]-(nextNode) RETURN r.name, r.geometry as wkt `; // You can change start and end nodes here var params = { "startNodeOsmId": "42428297", "endNodeOsmId": "42423674", }; session .run(query, params) .then(function(result){ le...
HTML
from pythongame.core.common import Millis, NpcType, Sprite, Direction, SoundId, LootTableId from pythongame.core.game_data import NpcData from pythongame.core.npc_behaviors import MeleeEnemyNpcMind from pythongame.core.pathfinding.grid_astar_pathfinder import GlobalPathFinder from pythongame.game_data.enemies.register_...
Python
#coding=utf-8 import xml.etree.ElementTree as ET import numpy as np import glob def iou(box, clusters): """ 计算一个 ground truth 边界盒和 k 个先验框(Anchor)的交并比(IOU)值。 参数box: 元组或者数据,代表 ground truth 的长宽。 参数clusters: 形如(k,2)的numpy数组,其中k是聚类Anchor框的个数 返回:ground truth和每个Anchor框的交并比。 """ x = np.minimum(clu...
Python
obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the Lic...
Java
aeon-datepicker> </p> <p> <label for="date-end">End Date</label> <aeon-datepicker default-date="2025-01-01" default-time="17:00"> <input id="date-end" name="date-end" type="date" placeholder="End date" /> <input id...
HTML
2#\n\006common\030\001" + " \001(\0132\023.tiktok_hack.Common\022\016\n\006giftId\030\002 \001(" + "\t\022\026\n\016fanTicketCount\030\003 \001(\003\022\022\n\ngroupCount\030" + "\004 \001(\003\022\023\n\013repeatCount\030\005 \001(\003\022\022\n\ncomboCount" + "\030\006 \001(\003\022\037\n\004u...
Java
程序员通过构建控制流的心理地图理解程序,不同控制结构产生不同复杂度的心理图谱。 **证明**: 1. 应用空间认知理论,证明程序员形成代码的心理地图,类似于物理空间导航。 2. 分析不同控制结构(顺序、分支、循环、递归)如何影响这一心理地图的复杂度。 3. 证明线性控制流产生最简单的心理地图,而多重嵌套和远距离跳转产生更复杂的图谱,增加认知负荷。 **定理 19.3.3**(控制流的模式识别): 有经验的程序员通过识别控制流模式理解代码,类似于专家国际象棋选手识别棋盘模式。 **证明**: 1. 分析程序员如何从初学者的逐行追踪策略发展到基于模式的整体识别。 2. 证明识别的模式数量与编程专业水平高度相关,类似...
Markdown
M1和M2 MPS训练 通过Ultralytics YOLO模型集成对Apple M1和M2芯片的支持,现在可以在使用强大的Metal性能着色器(MPS)框架的设备上训练模型。MPS为在Apple的定制硅上执行计算和图像处理任务提供了一种高性能的方法。 要在Apple M1和M2芯片上启用训练,您应该在启动训练过程时将设备指定为'mps'。以下是Python和命令行中如何做到这点的示例: !!! Example "MPS训练示例" === "Python" ```python from ultralytics import YOLO # 加载模型 m...
Markdown
rue | https://img1.qunliao.info/fastdfs7/M00/A5/CC/180x135/crop/-/rBUBsmbKFBiAfBM_AGJBEHwmqEM527.gif | /fastdfs7/M00/A5/CC/rBUBsmbKFBiAfBM_AGJBEHwmqEM527.gif | dongqiudi:///news/4492643 | 33 | 53876816 | | 4492640 | 萨利巴精准抢断策动反击,随后托马斯远射打高 | 28 | True | https://img1.qunliao.info/fastdfs7/M00/A5/CC/180x135/crop/-/rBUBsmbK...
Markdown
24-.1983,1.4184-.8131.1719-.5921.4429-.4843.7019-.7406.6742-.6671.544-.5776.5141-1.0807-.0415-.6963,0-4.3906,0-4.3906Z"/></g><g id="line"><path fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.49" d="M28.0542,44.3144l1.0332,2.7421.3112,2.0492-1.0159,2.793L27.4042,53.07l-1.6.70...
CSS
600; $font-weight-bolder: 700; //==================================// //========= FONT SIZES ===========// //==================================// $font-header-1: 38px; $font-header-2: 30px; $font-header-3: 24px; $font-header-4: 20px; $font-header-5: 16px; $font-header-6: 14px; //==================================// ...
CSS
er(encoding) local buf = tm.buffer_tobytestring(getmetatable(this).buffer, offset, endOffset) if encoding == 'binary' then return tm.str_from_binary(buf); elseif encoding == 'ascii' then return tm.str_from_ascii(buf); elseif encoding == 'utf8' or encoding == 'utf-8' then return tm...
Lua
unction rbg: $K(x, y) = exp(-γ \cdot ||x - y||^2)$ - sigmoid: $K(x, y) = tanh(\alpha \cdot x^\intercal y + c)$ *linear svm* - the objective is a convex, quadratic function - the constraints are linear inequality constraints - minimum can be found with convex optimisation algorithm (ie. quadratic program QP solver) - ...
Markdown
rmat!("{}", HRef::new(did, &last.name)), } } else { format!("{}", HRef::new(did, &last.name)) }; write!(w, "{}{}", path, last.params)?; } Ok(()) } fn primitive_link(f: &mut fmt::Formatter, prim: clean::PrimitiveType, name: &str...
Rust
azp->data_ptr<int32_t>(), azp_adj.data_ptr<int32_t>(), nullptr, c.size(0), c.size(1)); } else { // Per-Tensor dynamic_quant_epilogue<true, false, false, scalar_t>( tmp_fp32_out.data_ptr<float>(), c.data_ptr<scalar_t>(), a_scales.data_ptr<flo...
C++
rounded-full flex items-center justify-center mr-4"> <i class="fa-solid fa-list-check text-info-content text-xl"></i> </div> <h2 class="card-title">章节 & RSS</h2> </div> <p>章节自动生成并支持手动微调,RSS feed 随音频更新,兼容主流播客客户端。</p> </div> </div> </div> <!-- 使用方法 --> <di...
HTML
return ret; } private Link link_n(int link_num, double length, double radius) { Link ret = new Link("link" + link_num); double mass = Math.PI * radius * radius * length * DENSITY; double Iyy = 0.66 * mass * length * length; ret.setMass(mass); ret.setComOffset(0.0, 0.0, -lengt...
Java
* * @property PI * * @example * <div><code> * arc(50, 50, 80, 80, 0, PI); * </code></div> * * @alt * white half-circle with curve toward bottom of canvas. * */ PI: PI, /** * QUARTER_PI is a mathematical constant with the value 0.7853982. * It is one quarter the ratio of the...
JavaScript
CTSTR)"RIDL3", "00")); m_GraphicConfig_frm.m_L4.Format((LPCTSTR) Ini.GetString((LPCTSTR)"RIDs",(LPCTSTR)"RIDL4", "00")); m_GraphicConfig_frm.m_B1.Format((LPCTSTR) Ini.GetString((LPCTSTR)"RIDs",(LPCTSTR)"RIDB1", "00")); m_GraphicConfig_frm.m_B2.Format((LPCTSTR) Ini.GetString((LPCTSTR)"RIDs",(LPCTSTR)"RIDB2", "00"...
C++
add.l #200*160,a2 add.l #200*120,a0 move.w #200-1,d7 .l REPT 20 move.l -(a0),d0 move.l d0,-(a1) move.l d0,-(a2) move.w -(a0),d0 move.w d0,-(a1) move.w d0,-(a2) sub.w #2,a1 sub.w #2,a2 ENDR dbra d7,.l rts title_vbl move.w #0,$ffff8240 pushall move.l screenpointer2,d0 lsr.w #8,d0 move.l d0,$f...
Assembly
80B0 @ =0xFFFFF000 cmp r1, r0 bgt _080B80C0 ldr r2, [r3, #0xc] adds r0, r3, #0 adds r0, #0x2a ldrb r1, [r0] movs r0, #0xf ands r0, r1 cmp r0, #0 bne _080B80C0 movs r0, #0x80 lsls r0, r0, #9 ands r2, r0 cmp r2, #0 beq _080B80C0 ldr r2, _080B80B4 @ =gPseudoRandom ldr r1, [r2] ldr r0, _080B80B8 @ =0x0019...
Assembly
e: if elem, ok := vf.Interface().([]byte); ok { if err := EscapeText(p, elem); err != nil { return err } } } continue case fComment: if err := s.setParents(&noField, reflect.Value{}); err != nil { return err } k := vf.Kind() if !(k == reflect.String || k == reflect.Slice...
Go
-angle ) * math.pi / 180; else object.rotation.y = (-angle - 180) * math.pi / 180; } // Roll an [object] by [angle] degrees static objRoll(THREE.Object3D object, double angle) { object.rotation.z = (-angle ) * math.pi / 180; } // Pitch an [object] by [angle] degrees static objPitch(THREE.Obj...
Dart
atan2_except_at_the_origin( #[strategy(not_nan())] x: f64, #[strategy(not_nan())] y: f64, ) { if x.classify() != Zero || y.classify() != Zero { assert_ulps_eq!( sinatan2(x, y), x.atan2(y).sin(), epsilon = 2f64 * f64::EPSILON ...
Rust
nt(cloud) // .setGpsTime(gpsTime); ; } } private void addNirPoints(final LasPointCloud cloud) { for (final int nir : Arrays.asList(0, 1, 65534, 65535)) { addRandomPoint(cloud) // .setNir(nir) // ; } for (int i = 0; i < 1000; i++) { final int nir = RANDOM.next...
Java
previous node; link it and wait until reaching the * head of the waitqueue. */ if (old & _Q_TAIL_MASK) { prev = decode_tail(old); /* Link @node into the waitqueue. */ WRITE_ONCE(prev->next, node); pv_wait_node(node, prev); arch_mcs_spin_lock_contended(&node->locked); /* * While waiting for the M...
C
let lastUpdateTime = 0; let connectionStatus = document.getElementById('connectionStatus'); let connectionIndicator = connectionStatus.querySelector('.status-indicator'); let loadingStatus = document.getElementById('loadingStatus'); // 模拟数据,用于演示 const mockData = { counts_per_class: { ...
HTML
/************************************************************************************ Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved. Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License"); you may not use the Oculus VR Rift SDK except in compliance with the License, which is p...
C#
float value = ((float*)payload)[0]; libpd_start_message(1); libpd_add_float(value); libpd_finish_message("bela_guiControl", name); } if('s' == header.type) { libpd_symbol(name, payload); } waitingForHeader = true; } } for(auto& b : gGuiDataBuffers) { int id = b.id; int size = b....
C++
l('processing'); controllency.pause(); expect(controllency.getStatus()).to.be.eql('paused'); controllency.resume(); expect(controllency.getStatus()).to.be.eql('processing'); controllency.on('resolved', () => { done(); }); promiseResolver(); });impo...
Typescript
: italic; } .typ { color: #404; font-weight: bold; } .lit { color: #004444; } .pun, .opn, .clo { color: #444400; } .tag { color: #006; font-weight: bold; } .atn { color: #440044; } .atv { color: #006600; } } /* Specify class=linenums on a pre to get line n...
CSS
ion » mise à disposition peut contenir des « Données à caractère personnel » pouvant faire l&apos;objet d&apos;une « Réutilisation ». Si tel est le cas, le « Concédant » informe le « Réutilisateur » de leur présence.</p> <p>L&apos;« Information » peut être librement réutilisée, dans le cadre des droits ...
HTML
T> TypedColumn<DsType, *>.typed(): TypedColumn<DsType, T> = `as`() /** * Creates a [Column] of literal value. * * The passed in object is returned directly if it is already a [Column]. * If the object is a Scala Symbol, it is converted into a [Column] also. * Otherwise, a new [Column] is created to represent the...
Kotlin
, CursorPagingData<SnPollAnswer> > with PollFeedbackNotifierRef { _PollFeedbackNotifierProviderElement(super.provider); @override String get id => (origin as PollFeedbackNotifierProvider).id; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_intern...
Dart
GamePlayed(CSteamID steamIDFriend, ref UInt64 pulGameID, ref UInt32 punGameIP, ref UInt16 pusGamePort, ref UInt16 pusQueryPort); [VTableSlot(10)] string GetFriendPersonaNameHistory(CSteamID steamIDFriend, Int32 iPersonaName); [VTableSlot(11)] bool HasFriend(CSteamID steamIDFriend, EFriendFlags iFriendFlags); ...
C#
using Android.App; using Android.Content; using Android.Graphics.Drawables; using Android.OS; using Android.Runtime; using AndroidX.Annotations; using AndroidX.Core.Content; using AndroidApplication = Android.App.Application; // ReSharper disable once CheckNamespace namespace System { public static partial class C...
C#
agMap = getOrCreateTagMap() val doc = docDeferred.await() val tagsElement = doc.select("li.kind p.col-xs-8 a") val mangaTags = tagsElement.mapNotNullToSet { tagMap[it.text()] } val author = doc.body().select(selectAut).textOrNull() manga.copy( description = doc.selectFirst(selectDesc)?.html(), altTitles...
Kotlin
age("nullValue.GLIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } if (direction == null) direction = DEFAULT_LIGHT_DIRECTION; float[] ambient = {1f, 1f, 1f, 0f}; float[] diffuse = {1f, 1f, 1f, 0f}; fl...
Java
rcs r3, [r0, #0] ldrne r3, [r1, #0] strcs ip, [r0, #0] strne r3, [r0, #0] ret lr 3: bic r1, r1, #3 ldr r3, [r1], #4 cmp ip, #2 blt 5f bgt 6f 4: mov ip, r3, lspull #16 ldr r3, [r1], #4 subs r2, r2, #1 orr ip, ip, r3, lspush #16 str ip, [r0] bne 4b ret lr 5: mov ip, r3, lspull #8 ldr r...
Assembly
!= 0) { opserr << "WARNING invalid series tag in LinearSeries tag? <-factor factor?>" << endln; return 0; } numRemainingArgs--; } if (numRemainingArgs > 1) { const char *argvS = OPS_GetString(); if (argvS == 0) { opserr << "WARNING string error in LinearSeries with tag: " << tag <<...
C++
mmit); }); } console.log(commitsAll); console.log("------- now write JSON --------"); let jsonLog = JSON.stringify(commitsAll, null, 4); //console.log(commitsAllJSON); //new OutputFileGenerator(commitsAll).generateFile(); console.log("GitL...
Typescript
sfc_vrc6_data_t vrc6; // VRC7 sfc_vrc7_data_t vrc7; // FDS1 sfc_fds1_data_t fds; // MMC5 sfc_mmc5_data_t mmc5; // N163 sfc_n163_data_t n163; // FME7 sfc_fme7_data_t fme7; } sfc_apu_register_t; // typedef struct sfc_famicom; t...
C
+ 30.24vw)}.rws-24{width:calc(3.885rem + 31.62vw)}.rws-25{width:calc(4rem + 33vw)}.rws-26{width:calc(4.115rem + 34.38vw)}.rws-27{width:calc(4.23rem + 35.76vw)}.rws-28{width:calc(4.345rem + 37.14vw)}.rws-29{width:calc(4.46rem + 38.52vw)}.rws-30{width:calc(4.575rem + 39.9vw)}.rws-31{width:calc(4.69rem + 41.28vw)}.rws-32{...
CSS
shred = Arc::new(bad_last_data_shred); // Store the good shred so that blockstore will signal ClusterSlots // that the slot is complete blockstore_sender.send((good_last_data_shred, None))?; loop { // Wait for slot to be complete if blockst...
Rust
0ns nop write_ay_value_right: lda MB_VALUE ; 3 sta MOCK_6522_2_ORA ; put value on PA2 ; 3 ; AY-3-8913 must hold 50ns nop lda #MOCK_AY_WRITE ; ; 2 sta MOCK_6522_2_ORB ; write on PB2 ; 3 ; AY-3-8913 must hold 1800ns nop nop nop nop nop lda #MOCK_AY_INACTIVE ; go inactive ; 2 sta...
Assembly
log.Printf("[TRACE] providercache.fillMetaCache: including %s as a candidate package for %s %s", meta.Location, providerAddr, meta.Version) data[providerAddr] = append(data[providerAddr], CachedProvider{ Provider: providerAddr, Version: meta.Version, PackageDir: filepath.ToSlash(packageDir), }) ...
Go
.db_dir = f"{db_name}_data" self.load_db() def create_table(self, table_name: str): if table_name not in self.tables: self.tables[table_name] = BPlusTree(self.order) return f"Table '{table_name}' created successfully" return f"Error: Table '{table_name}' already exis...
Python
-data-edit-event .theme-data-edit-container > .theme-data-edit-border-bottom { left: 0; bottom: 0; width: 100%; height: 0.1rem; border-width: 0 0 0.1rem 0; } .theme-data-edit-event .theme-data-edit-container > .theme-data-edit-border-left { left: 0; bottom: 0; width: 0.1rem; height: ...
CSS
#!/usr/bin/env python3 """ secuenvia-listo.py Presenta una secuencia que se puede usar para indicar que un sistema esta listo para ser utilizado """ import time import os """ Una función que abre un archivo cualquiera para leer, lee el contenido y cierra el archivo, devuelve su contenido. """ def Lee...
Python
<title>Test HTTP auth prompts by loading authenticate.sjs with no window</title> <script src="/tests/SimpleTest/SimpleTest.js"></script> <script type="text/javascript" src="pwmgr_common.js"></script> <script type="text/javascript" src="../../../prompts/test/prompt_common.js"></script> <link rel="stylesheet" t...
HTML
/list/seoul/jungnang_1.dart'; import 'package:bridze/list/seoul/jungnang_2.dart'; import 'package:bridze/list/seoul/mapo_1.dart'; import 'package:bridze/list/seoul/mapo_2.dart'; import 'package:bridze/list/seoul/nowon_1.dart'; import 'package:bridze/list/seoul/nowon_2.dart'; import 'package:bridze/list/seoul/seocho_1.d...
Dart
maxhp, v:GetTeamID(), v:IsCard(), v:IsLive()) -- 合体, 召唤 if v:GetTeamID() == 1 and v:IsCard() then --LogDebugEx("card22---", v.name, v.hp, v.maxhp) if v.fuid then -- arrSp[0] = v.sp data[0] = {hp = mat...
Lua
border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start). $mdb-input-padding-base-vertical: 8px - 1px !default; // was 6. $mdb-input-padding-base-horizontal: 0 !default; // was 12. $mdb-label-as-placeholder-shim-base: 0 !default; // manual adjustment of label top when positioned as...
CSS
_exit(void) { cmm_free_pages(cmm_pages, &cmm_pages, &cmm_page_list); cmm_free_pages(cmm_timed_pages, &cmm_timed_pages, &cmm_timed_page_list); #ifdef CONFIG_CMM_PROC unregister_sysctl_table(cmm_sysctl_header); #endif #ifdef CONFIG_CMM_IUCV smsg_unregister_callback(SMSG_PREFIX, cmm_smsg_target); #endif } module_init...
C