content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
.LBB285:
.loc 1 534 0
.syntax unified
@ 534 "drivers/misc/rk3506-secure-otp.c" 1
dmb sy
@ 0 "" 2
.thumb
.syntax unified
ldr r1, [r4]
movs r0, #126
add r1, r1, #4128
str r0, [r1]
.LVL325:
.LBE285:
.LBB286:
.loc 1 535 0
.syntax unified
@ 535 "drivers/misc/rk3506-secure-otp.c" 1
dmb sy
@ 0 "" 2
.thumb
.synta... | Assembly |
s<Bound, Bound> class1d =
new BoundedGenericClass/*<Bound,Bound>*/();
boundedGenericA/*<Bound?>*/();
X x1 = boundedGenericA/*<Never>*/();
Y y1 = boundedGenericA/*<Y>*/();
Bound b1 = boundedGenericA/*<Bound>*/();
Bound? b2 = boundedGenericA/*<Bound?>*/();
boundedGenericB/*<Bound>*/();
... | Dart |
Noto Color Emoji";
letter-spacing: .5px;
text-transform: uppercase;
}
.breadcrumb-style1 .breadcrumb-item a, .breadcrumb-style2 .breadcrumb-item a, .breadcrumb-style3 .breadcrumb-item a {
color: #242f48;
}
.breadcrumb-style1 .breadcrumb-item a:hover, .breadcrumb-style1 .breadcrumb-item a:focus {
color: #0162e... | CSS |
tZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC");
}
.CodeMirror-gutter-filler,
.CodeMirror-scrollbar-filler {
background: transparent;
}
/* Scrollbars */
.platform-win .CodeMirror-scrollbar-filler,.platform-win .CodeMirr... | CSS |
54E121C927D118E
L2_2.__enum__ = L5_2
L2_2[1] = L3_2
L2_2[2] = L4_2
L3_2 = 3
L1_2 = L1_2(L2_2, L3_2)
return L1_2
end
L51_1.NetError = L52_1
L51_1 = {}
L51_1.__ename__ = true
L52_1 = _hx_tab_array
L53_1 = {}
L53_1.length = 0
L53_1[0] = "Success"
L54_1 = "Failed"
L55_1 = "NetError"
L53_1[1] = L54_1
L53_1[2] =... | Lua |
Change: use hubsecret
viper.SetDefault(LearnerImagePullSecretKey, "hubsecret")
// viper.SetDefault(LearnerImagePullSecretKey, "bluemix-cr-ng")
// TLS defaults for microservices
viper.SetDefault(TLSKey, true)
viper.SetDefault(ServerNameKey, "dlaas.ibm.com")
// find certificates locally or in known place (i... | Go |
final double bottom;
final Set<WidgetState> states;
final FWidgetStateMap<Color>? dividerColor;
final double? dividerWidth;
final FItemDivider dividerType;
final Widget? prefix;
final Widget child;
const RawItemContent({
required this.style,
required this.margin,
required this.bottom,
req... | Dart |
en
return follower1.sortNumCounters > follower2.sortNumCounters;
end
if (follower1.sortNumTraits ~= follower2.sortNumTraits) then
return follower1.sortNumTraits > follower2.sortNumTraits;
end
if ( follower1.quality ~= follower2.quality ) then
return follower1.quality > follower2.quality;
end
return nil;
... | Lua |
C) Copyright 2002-2008, by Anthony Boulestreau and Contributors.
*
* Original Author: Anthony Boulestreau;
* Contributor(s): David Gilbert (for Object Refinery Limited);
*
*
* Changes
* -------
* 29-Mar-2002 : First version (AB);
* 19-Apr-2002 : Updated formatting and import statements (DG);
* 21-Jun-2002 ... | Java |
points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
--select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%... | CSS |
uario[];
constructor() {
this.lista = [];
}
agregarUsuario(usuario: Usuario): Usuario {
this.lista.push(usuario);
console.log('UNOOO')
return usuario;
}
actualizarDatos(id: string, _id: string, conectado: boolean, tipo: number, _idSucursal: string, _idEmpresa: strin... | Typescript |
"
},
{
"surah_number": 18,
"verse_number": 41,
"content":
"eller låter dess källvatten sjunka till sådant djup att du aldrig återfinner det"
},
{
"surah_number": 18,
"verse_number": 42,
"content":
"Då drabbades [den andres] vingårdar [av total ödeläggelse] och han vred si... | Dart |
#ifndef __USER_DEVICE_H__
#define __USER_DEVICE_H__
#ifdef CLIENT_SSL_ENABLE
#include "ssl/ssl_ssl.h"
#endif
/* NOTICE---this is for 512KB spi flash.
* you can change to other sector if you use other size spi flash. */
#define ESP_PARAM_START_SEC 0x7D
#define packet_size (2 * 1024)
#define token_size 41
st... | C |
A256"
cipherSuiteNames[0xC04B] = "TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384"
cipherSuiteNames[0xC04C] = "TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256"
cipherSuiteNames[0xC04D] = "TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384"
cipherSuiteNames[0xC04E] = "TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256"
cipherSuiteNames[0xC04F] = "TLS_ECDH_... | Go |
if (! _.isEqual(info.contents, newContents)) {
this.fire();
return true;
}
}
return false;
}
private startFileWatches() {
const keys = Object.keys(this.watchSet.files);
// Set up a watch for each file
this.processBatches(keys, absPath => {
if (! this.justCheckOnc... | Typescript |
String(int64_t time_ms) const {
char buf[2048];
rtc::SimpleStringBuilder ss(buf);
ss << "VideoReceiveStream stats: " << time_ms << ", {ssrc: " << ssrc << ", ";
ss << "total_bps: " << total_bitrate_bps << ", ";
ss << "width: " << width << ", ";
ss << "height: " << height << ", ";
ss << "key: " << frame_cou... | C++ |
_URL: DWORD = 87;
pub const WINHTTP_OPTION_REDIRECT_POLICY: DWORD = 88;
pub const WINHTTP_OPTION_MAX_HTTP_AUTOMATIC_REDIRECTS: DWORD = 89;
pub const WINHTTP_OPTION_MAX_HTTP_STATUS_CONTINUE: DWORD = 90;
pub const WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE: DWORD = 91;
pub const WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE: DWORD... | Rust |
Simple Container)
[79365] = 2, -- Shaman MailStrom Weapon (With Wind Beneath Your Wings)
[79366] = 2, -- Shaman MailStrom Weapon (Calm Before the Storm)
[79442] = 2, -- Shaman MailStrom Weapon (Catching Up)
[79535] = 2, -- Mage Icy Veins/Spell Power
[79536] = 2, -- Mage Icy Veins/Spell Power
[79... | Lua |
.financeContent .imgArea img{height:68px;overflow:hidden;width:143px}.rightZixuangu .financeContent .txtArea{padding:1px 0 0 9px;width:110px}.rightZixuangu .financeContent .txtArea dt{font-size:12px;line-height:14px;font-weight:400;margin-top:2px;overflow:hidden;width:132px}.rightZixuangu .financeContent .txtArea dt a{... | CSS |
let value = sys.cpu.flags.get_16();
sys.push_16(value);
}
#[instr("SAHF")]
pub fn sahf(sys: &mut System) {
let value = sys.cpu.reg_8(Ah);
sys.cpu.flags.set_8(value);
}
#[instr("LAHF")]
pub fn lahf(sys: &mut System) {
let value = sys.cpu.flags.get_8();
sys.cpu.set_reg_8(Ah, value);
}
#[instr(... | Rust |
Time("time")
}
val XrHandJointLocationEXT = struct(Module.OPENXR, "XrHandJointLocationEXT") {
XrSpaceLocationFlags("locationFlags")
XrPosef("pose")
float("radius")
}
val XrHandJointVelocityEXT = struct(Module.OPENXR, "XrHandJointVelocityEXT", mutable = false) {
XrSpaceVelocityFlags("velocityFlags")
... | Kotlin |
"/alpha", nil)
if err != nil {
t.Fatal(err)
}
r.ServeHTTP(response, req)
if respBody := response.Body.String(); respBody != "alpha response" {
t.Error("wrong response body", respBody)
}
app.ExpectTxnEvents(t, []internal.WantEvent{
{},
})
}
func TestMiddlewareNotFoundHandler(t *testing.T) {
// This test ... | Go |
g знизилися? (2-хвилинне читання - Joost)
Давайте почнемо!
## FreeSewing 2.21 додає п'ять нових візерунків
FreeSewing 2.21 додає дизайни Bob, Hi, Lucy, Noble та Unice.
### Нагрудник Боб
Давні прихильники FreeSewing можуть впізнати Боба, класичний нагрудник, який є результатом навчання дизайну викрі... | Markdown |
operty]
_main.default.prototype._lcg = function (stateProperty) {
// define the recurrence relationship
this[stateProperty] = (a * this[stateProperty] + c) % m;
// return a float in [0, 1)
// we've just used % m, so / m is always < 1
return this[stateProperty] /... | JavaScript |
value[i] }
fun freeze(): ST<S, List<A>> = ST { value.toList() }
fun fill(xs: Map<Int, A>): ST<S, Unit> =
xs.entries.fold(ST { Unit }) { st, (k, v) ->
st.flatMap { write(k, v) }
}
fun swap(i: Int, j: Int): ST<S, Unit> =
read(i).flatMap { x ->
read(j).flatMa... | Kotlin |
ide with each other
BSPrimLinkable convCollidee = collidee as BSPrimLinkable;
if (convCollidee != null && (this.Linkset.LinksetID == convCollidee.Linkset.LinksetID))
{
return false;
}
return base.Collide(collidingWith, collidee, contactPoint, contactNormal, pentration... | C# |
..) a new goroutine to be created
// for continuous retrying.
go func() {
aontherFetchErr := fetchErr
ticker := time.NewTicker(fetchRetryInterval)
defer ticker.Stop()
for aontherFetchErr != nil {
select {
case <-ticker.C:
_startupFetchLock.Lock()
if _startupFetchedFinished {
_st... | Go |
性差异的,或者公安机关、本院负责侦查的部门不能补正或者作出合理解释的,该讯问笔录不能作为批准或者决定逮捕、提起公诉的依据。
第二百六十五条 犯罪嫌疑人及其辩护人申请排除非法证据,并提供相关线索或者材料的,人民检察院应当调查核实。发现侦查人员以刑讯逼供等非法方法收集证据的,应当依法排除相关证据并提出纠正意见。
审查逮捕期限届满前,经审查无法确定存在非法取证的行为,但也不能排除非法取证可能的,该证据不作为批准逮捕的依据。检察官应当根据在案的其他证据认定案件事实和决定是否逮捕,并在作出批准或者不批准逮捕的决定后,继续对可能存在的非法取证行为进行调查核实。经调查核实确认存在以刑讯逼供等非法方法收集证据情形的,应当向公安机关提出纠正意见。... | Markdown |
startLength = startValue.length;
var end;
var endValue = this.getText();
var endLength = endValue.length;
for (start = 0; start < startLength; start++) {
if (startValue[start] !== endValue[start]) {
break;
}
}
var minEnd = startLength - start;
for (end = 1; end <= minE... | JavaScript |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT-0
// ----------------------------------------------------------------------------
// Convert to Montgomery form z := (2^384 * x) mod p_384
// Input x[6]; output z[6]
//
// extern void bignum_to... | Assembly |
sition .25s ease-in-out;
-moz-transition: background-position .25s ease-in-out;
-ms-transition: background-position .25s ease-in-out;
-o-transition: background-position .25s ease-in-out;
transition: background-position .25s ease-in-out
}
body[data-href='features-offline'] .feature_icon {
background-position: center 76p... | CSS |
ariation":"Qxa6 Rd8 exd5 exd5 Ne2 Ne4 Rfd1 Be5 Qa3 Bh2+ Kh1 Bd6","judgment":{"name":"Blunder","comment":"Blunder. Qxa6 was best."}},{"eval":216,"best":"e6e5","variation":"e5 Bc5","judgment":{"name":"Blunder","comment":"Blunder. e5 was best."}},{"eval":235},{"eval":216},{"eval":228},{"eval":227},{"eval":47,"best":"a4a6"... | Dart |
-content p .headerlink:before,.rst-content table>caption .headerlink:before,.rst-content tt.download span:first-child:before,.wy-alert,.wy-dropdown .caret:before,.wy-inline-validate.wy-inline-validate-danger .wy-input-context:before,.wy-inline-validate.wy-inline-validate-info .wy-input-context:before,.wy-inline-validat... | CSS |
if the query fails for some reason
pub fn get(conn: &sql::Connection, name: &str) -> Result<Option<Context>> {
let mut stmt = conn.prepare("SELECT * FROM context WHERE name = :name")?;
stmt.query_row_named(&[(":name", &name)], of_row)
.optional()
.map_err(|e| Error::Query(e)... | Rust |
tate = JSON.parse(state);
return gameState;
}
} catch {}
return initialGameState;
};
export const initialState: GameState = loadSate();
const _gameReducer = createReducer(
initialState,
on(newHand, (state) => {
const maxNo =
state.hands.length > 0
? Math.max.apply(
... | Typescript |
inder.Ref:SetVisible(self.uiBinder.btn_startsort, true)
self.uiBinder.Ref:SetVisible(self.uiBinder.btn_endsort, false)
end
for _, func in pairs(self.funcOnInteractableChange_) do
func()
end
end
function Friends_group_subView:refreshGroupItemBtn(unit, groupId)
if true == self.isChangeGroupSort_ then
... | Lua |
ags = 0;
for (int signum : std_signals) {
int ret = sigaction(signum, &act, &oldact);
assert(ret == 0);
}
#ifdef SIGRTMIN
for (int signum = SIGRTMIN; signum <= SIGRTMAX; ++signum) {
int ret = sigaction(signum, &act, &oldact);
assert(ret == 0);
}
#endif
for (int signum : {
0,
#ifdef SI... | C++ |
Payload is required'
if (FORBIDDEN_PAYLOAD_TYPES.includes(typeof payload)) return 'Payload must be an object'
return false
}
export async function wrapRequest(req: IncomingMessage): Promise<Request> {
if (req.method !== 'POST') {
throw new MethodNotAllowedError(req.method || '')
}
if (req.headers['conte... | Typescript |
param name="field"></param>
/// <returns></returns>
public TField GetNewField<TField>(IField<TRecord, TField> field) {
if(this.Action == SnapTableAction.Delete) {
throw new InvalidOperationException(Properties.Resources.ErrorWrongNewData);
}
return this.changeData.GetNewField<TField>(this.rowId, field)... | C# |
change_02_a_01",
[2] = "loc_mourningstar_soldier_male_e__oval_hub_soldier_exchange_03_a_01",
},
sound_events_duration = {
[1] = 4.012042,
[2] = 2.759063,
},
randomize_indexes = {},
},
}
return settings("conversations_hub_mourningstar_soldier_male_e", conversations_hub_mourningstar_soldier_male_e) | Lua |
is equivalent to Wv + b where W is the weight matrix and b is the bias values.
The input vector must be equal to columns in size and the resulting vector will be
rows in size.
*/
public double[] feed(double[] vec)
{
// Sanity check
if(vec.length != columns)
{
... | Java |
()
def edit():
regno=txt1.get()
name=txt2.get()
address=txt3.get()
phone=txt4.get()
if regno=='' or name=='' or address=='' or phone=='':
messagebox.showinfo("Insert Data","Please fill all feilds.")
else:
conn=mysql.connect(host='localhost',user='root',passwd='',database='mkd123'... | Python |
le,
.theme-base16-google-dark .hljs-selector-tag,
.theme-base16-google-dark .hljs-name,
.theme-base16-google-dark .hljs-deletion {
color: #cc342b;
}
.theme-base16-google-dark .hljs-symbol,
.theme-base16-google-dark .hljs-number,
.theme-base16-google-dark .hljs-link,
.theme-base16-google-dark .hljs-attr,
.theme-base16-... | CSS |
放后自己劳动开垦的土地保留不动,并且不计算入其应分土地数目内。
</p>
<p>
领主、地主的大块山林、荒地、牧场一律没收归国家所有或为农民集体所有,已由农民耕种或使用者继续由农民耕种或使用。
</p>
<p>
领主、地主除在土改中犯法依法递夺其公民权者外,一律不剥夺其公民的政治权利。改革后其生产、生活确有困难者,政府酌予适当补助。
</p>
<p>
第4条:保护富农所有自耕和雇人耕种的土地及其它财产,不得侵犯。富农所有出租的小量土地也予保留不动,但有的地区没收领主、地主的土地不能解决农民的土地要求时,经县人民委员会批准,可征收其出租土地的一部或全部,征收后富农占有的土地不得低于当地中农民水... | HTML |
e } from "./rotateActiveBlock";
import { sizeCanvas } from "./sizeCanvas";
import { createEmptyMatrix } from "./createEmptyMatrix";
import appendTileToMatrix from "./appendTileToMatrix";
import evaluateLineClear from "./evaluateLineClear";
const canvas = document.getElementById("game") as HTMLCanvasElement;
const ctx ... | Typescript |
ind.wav")
self.RunWind2 = CreateSound(self, "runwind.wav")
self.RunWindVolume = 0
self:SendWeaponAnim(ACT_VM_DRAW)
self.RespawnDelay = 0
self:SetWasOnGround(false)
self:SetBlockAnims(false)
end
local jumpseq = {ACT_VM_HAULBACK, ACT_VM_SWINGHARD}
-- local jumptr, jumptrout = {}, {}
-- local jumpvec = Vector(0, 0... | Lua |
"Rarity");
}
}
private Rarity _Rarity;
public bool CanAutoPot
{
get { return _CanAutoPot; }
set
{
if (_CanAutoPot == value) return;
var oldValue = _CanAutoPot;
_CanAutoPot = value;
... | C# |
atic const columnBody = 'body';
static const columnReadingStatus = 'readingStatus';
static const columnReadingStartedAt = 'readingStartedAt';
static const columnReadingFinishedAt = 'readingFinishedAt';
static const columnCreatedAt = 'createdAt';
static const columnLastModifiedAt = 'lastModifiedAt';
static c... | Dart |
assertPowerToughness(playerA, ashaya, 5 + 1 + 1, 5 + 1 + 1);
assertType(bear, CardType.LAND, SubType.FOREST);
assertType(bear, CardType.CREATURE, SubType.BEAR);
assertAbility(playerA, bear, new GreenManaAbility(), true);
}
@Test
public void testAshayaNoAbilities() {
setS... | Java |
{0, 1, 3} {0, 2, 3} {1, 2, 3}
- `r = 4` : {0, 1, 2, 3}
- 2️⃣ 해당 열의 조합이 후보키가 될 수 있는지 검사한다.
1. 최소성 검사 👉 해당 열의 조합이 이미 후보키를 포함하면 이 열의 조합은 후보키가 될 수 없다.
2. 유일성 검사 👉 해당 열의 조합으로 모든 튜플의 구별이 가능해야 한다.
- 3️⃣ 위 검사를 모두 통과했다면 후보키인 것이므로 해당 열의 조합을 `candKey`에 넣어 후보키로 등록.
열의 조합은 문자열 `combCols` 로 관리했다. {0, 1, 3} 의 조합은 "013"... | Markdown |
-items tr .value{text-align:right}table.table-items tr .change{text-align:right}table.table-items tr .time{text-align:right}table.table-items tr.neg .value{color:#cc0000}table.table-items tr.pos .value{color:#00aa00}table.table-items tr.neg .change{color:#cc0000}table.table-items tr.pos .change{color:#00aa00}table.tabl... | HTML |
int[] doorList = (int[])DOORS.get(managerId);
DoorParser.getInstance().getDoor(doorList[0]).openMe();
DoorParser.getInstance().getDoor(doorList[1]).closeMe();
}
if (this._spawns.containsKey(managerId) && this._spawns.get(managerId) != null) {
for(Npc npc : this._spawns.get(manag... | Java |
anti_ad.mc.ipnext.event.autorefill
import net.minecraft.core.DefaultedRegistry
import net.minecraft.core.Holder
import net.minecraft.tags.TagKey
interface SpecificItemSlotMonitor {
fun <T> DefaultedRegistry<T>.getEntry(id: T): Holder<T> = wrapAsHolder(id)
fun <T> Holder<T>.isIn(id: TagKey<T>): Boolean = `... | Kotlin |
;top:828px;left:68px;white-space:nowrap" class="ft01"><a href="o_7281d5ea06a5b67a-289.html">12.8.2</a></p>
<p style="position:absolute;top:828px;left:140px;white-space:nowrap" class="ft01"><a href="o_7281d5ea06a5b67a-289.html">Numeric Error flag and IGNNE# . . . . . . . . . . . .... | HTML |
("sub dir/hello world", "hello world", t1)
file2 := r.WriteFile("nested/sub dir/file", "nested", t1)
r.Mkdir(ctx, r.Fremote)
// run move with --delete-empty-src-dirs
ctx = predictDstFromLogger(ctx)
err := MoveDir(ctx, r.Fremote, r.Flocal, true, false)
require.NoError(t, err)
testLoggerVsLsf(ctx, r.Fremote, r.Fl... | Go |
onst s=t.querySelector("summary");s&&s.focus()}}})}}customElements.define("mobile-starlight-toc",p);</script></div><div class="right-sidebar-panel sl-hidden lg:sl-block astro-un2z77yf"><div class="sl-container astro-un2z77yf"><script type="module" src="/starlight-fullview-mode/_astro/TableOfContents.astro_astro_type_sc... | HTML |
Id(e.EventId);
}
return t;
}
static void ReleasePooled(T evt)
{
if (evt.Pooled)
{
// Reset the event before pooling to avoid leaking
evt.Init();
s_Pool.Release(evt);
// To avoid dou... | C# |
2S_LC_FIFO_TIMEOUT_ENA_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `I2S_LC_FIFO_TIMEOUT_ENA`"]
pub struct I2S_LC_FIFO_TIMEOUT_ENA_W<'a> {
w: &'a mut W,
}
impl<'a> I2S_LC_FIFO_TIMEOUT_ENA_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
sel... | Rust |
1197 | - | 1449 | 306 | 1473 | 1599 | 47 | 1654 | 1350 | 1128 | 621 | 977 | 260
fr | 2424 | 3457 | 5171 | 4455 | 923 | 1435 | - | 560 | 1711 | 4618 | 50 | 3273 | 2822 | 3384 | 1991 | 1657 | 326
hr | 736 | 507 | 854 | 553 | 273 | 317 | 588 | - | 328 | 615 | 24 | 546 | 660 | 433 | 277 | 586 | 136
hu | 1417 | 18... | Markdown |
orProto`.
final $typed_data.Uint8List exportEntitiesMetadataDescriptor = $convert.base64Decode(
'ChZFeHBvcnRFbnRpdGllc01ldGFkYXRhEkEKBmNvbW1vbhgBIAEoCzIpLmdvb2dsZS5kYXRhc3'
'RvcmUuYWRtaW4udjEuQ29tbW9uTWV0YWRhdGFSBmNvbW1vbhJQChFwcm9ncmVzc19lbnRpdGll'
'cxgCIAEoCzIjLmdvb2dsZS5kYXRhc3RvcmUuYWRtaW4udjEuUHJvZ3Jlc... | Dart |
l->append(STRING_WITH_LEN(", "));
found = true;
global->append(global_acls_vector[counter].c_str(),
global_acls_vector[counter].length());
}
}
}
global->append(STRING_WITH_LEN(" ON *.* TO "));
size_t len = acl_user->user == nullptr ? 0 : strlen(acl_user->user);
a... | C++ |
ectNoConnection(endpoints)
end)
test('Interception Certificates', function ()
local endpoints = {
superfish = 'superfish.badssl.com',
edellroot = 'edellroot.badssl.com',
preact_cli = 'preact-cli.badssl.com',
dsdtestprovider = 'dsdtestprovider.badssl.com',
webpack_dev_server = 'web... | Lua |
Weight.w600, fontSize: 18.0)),
_line(),
Padding(
padding: const EdgeInsets.only(top: 10.0),
),
new Text(
"干货集中营是一款根据 Gank.io 官方提供的api实现的Gank客户端,包含热门数据展示,"
"分类列表读取(Android,iOS,Flutter,前端,后端,App),妹纸瀑布流图片"
"以及玩安卓首页数据。",
style: new Te... | Dart |
rgin: 15px 0 15px;
padding-left: 15px;
}
.docs p tt, .docs p code {
background: #f8f8ff;
border: 1px solid #dedede;
font-size: 12px;
padding: 0 0.2em;
}
.pilwrap {
position: relative;
}
.pilcrow {
font: 12px Arial;
text-decoration: none;
... | Lua |
gi'), ' ');
}
/*
* 寻找所有element的兄弟节点
* */
function siblings(element: any): any {
// element.parentNode.children.filter(child => child !== element);
return Array.prototype.filter.call(element.parentNode.children, child => child !== element);
}
/*
* 查找一个元素
* */
function findSingle(element: any, selector: st... | Typescript |
.51 125.87,214.71 125.80,214.92 125.76,215.14 125.76,215.25 125.76,222.45 125.76,222.34 125.76,222.56 125.80,222.78 125.87,223.00 125.97,223.19 126.11,223.37 126.27,223.52 126.45,223.65 126.65,223.75 126.87,223.81 127.09,223.84' fill='#FFFFFF' fill-opacity='1' stroke='none' data-id='Ole Miss' tooltip_fill='white'/>
... | HTML |
MDk1MjM=\"/>" +
" <property enc=\"BASE64\" name=\"DAV:displayname\" value=\"dGVzdC50eHQ=\"/>" +
" </properties></resource>";
private static final String C_XML_START = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<collection " +
" " +
"id=\"/private/sampleAccess/mercury/test.txt\" " +
" ";
private st... | Java |
import json
import sys
from pathlib import Path
import pytest
from coverage import Coverage
from test_project.example import (
always,
if_gte_python36,
if_gte_python37,
if_gte_python38,
if_gte_python39,
if_gte_python310,
if_gte_python311,
)
#: This is just our specific example.
_EXCUDED_L... | Python |
: GritHistory, off=1) {
let mins = this.currentDuration(history);
let hour = Math.floor(mins / 60);
let currentRate = this.rate.eval(hour + off);
return currentRate;
}
currentStreak(history: GritHistory, threshold=0, max=14) {
return this.filterHistory(history).currentStreakLength(threshold, ma... | Typescript |
(radius: Meters) => (body: Body): Body => ({
...body,
parts: [{
relativePosition: vec(0, 0, 0) as Vec<Meters>,
shape: {
type: ShapeType.Sphere,
radius,
}
}]
});
export const circleShaped = sphereShaped;
export const segmentShaped = (p1: Vec<Meters>, p2: Vec<... | Typescript |
github.com/QuarkGluonPlasma/nestjs-course-code/tree/main/typeorm-relation-mapping)。
## 总结
TypeORM 里一对一关系的映射通过 @OneToOne 装饰器来声明,维持外键列的 Entity 添加 @JoinColumn 装饰器。
如果是非外键列的 Entity,想要关联查询另一个 Entity,则需要通过第二个参数指定外键列是另一个 Entity 的哪个属性。
可以通过 @OneToOne 装饰器的 onDelete、onUpdate 参数设置级联删除和更新的方式,比如 CASCADE、SET NULL 等。
还可以设置 casca... | Markdown |
le:IBundleValue = { type: 'unset', path, };
* const container = { data: { a: [{ b: { c: 123 } }] } };
*
* bundleParsers.unset (container, bundle);
*
* console.log (get (container, 'a.0.b'));
* // { }
* ```
*/
unset(container, bundle: IBundle) {
const { bundlePath } = prepare(container, bundle);
... | Typescript |
ear")?.firstOrNull()?.text()?.let { novel.metadata["Year"] = it }
// document.select("#editstatus")?.firstOrNull()?.text()?.let { novel.metadata["Status in Country of Origin"] = it }
// document.select("#showlicensed")?.firstOrNull()?.text()?.let { novel.metadata["Licensed (in English)"] = it }
// document.sel... | Kotlin |
builder: (context) => SafeArea(child: _optionBuilder(context)),
);
},
child: Tooltip(
message: S.current.search_options,
child: Padding(
padding: const EdgeInsets.all((36 - 24) / 2),
child: ... | Dart |
uire.resolve('./polyfills'), paths.appIndexJs],
output: {
// The build folder.
path: paths.appBuild,
// Generated JS file names (with nested folders).
// There will be one main bundle, and one file per asynchronous chunk.
// We don't currently advertise code splitting but Webpack supports it.
... | JavaScript |
ometry.applyMatrix4(originHelper.matrixWorld);
+ // 색상값을 계산합니다.
+ const hue = THREE.MathUtils.lerp(0.7, 0.3, amount);
+ const saturation = 1;
+ const lightness = THREE.MathUtils.lerp(0.4, 1.0, amount);
+ color.setHSL(hue, saturation, lightness);
+ // RGB 색상값을 0부터 255까지의 배열로 변환합니다.
+ const rgb = co... | HTML |
{
Check(123.toShort(), "123")
Check(-12345.toShort(), "-12345")
}
@Test fun int() {
Check(123, "123")
Check(-1234567, "-1234567")
}
@Test fun long() {
Check(123456789012345L, "123456789012345L")
Check(-123456789012345L, "-123456789012345L")
}
@Test fun float() {
Check(0.75F, "0.... | Kotlin |
x90C\x09{\xd4\x12a\xc4\xa8\xc1'\x9a\
>\xd9\x9d\x1f\xb5f;\x95\xb8\x84\xef/\x8c\xb7q\xde\
d\xb2\x8e^n\xbfF\xaa6\xcd\xa6\x8fU\xc2\xb6\x14\
d\x01\x1b\x95+l\x9dI\xa8\xd4\x0d\xb1OGy\xe3\
\xd6.\xb0\x0c?\xc4\x0c\xb9\xb4\xf3`0\xe4\xde*\xf7\
!\x95J\xd5\x0e\x8a0\xa4p\xbf\x83\x1f\xdaU\x1d\x92\
\x91\xc0y\xdf\xf5\xc7\xf9\x86\xfd_\x1... | Python |
icon:[576,512,[],"f03d","M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"]},ng={prefix:"fas",iconName:"video-slash",icon:[640,512,[... | HTML |
t = P('_') + letter
local ident = ident_first * rep(ident_first + num)
local opt_ident = ident * opt(P('?'))
local ty_ident_sep = S('-._')
local ty_ident = ident * rep(ty_ident_sep * ident)
local string_single = P "'" * rep(any - P "'") * P "'"
local string_double = P('"') * rep(any - P('"')) * P('"')
local generic = P... | Lua |
33,
-0.666667, 0.666667, -0.333333, 0.333333, -0.333333, 0, -1, 0, 1,
]
),
'invert (general case)'
);
t.end();
});
test('Test JacobiN', (t) => {
for (
let dimension = 2;
dimension < 30;
dimension += vtkMath.roundNumber(10 * Math.random(), 0)
) {
const mat = vtkMath.createA... | JavaScript |
t`
#[derive(IntoPyObject)]
struct Tuple<'a, K: Hash + Eq, V>(&'a str, HashMap<K, V>);
```
For structs with a single field (newtype pattern) the `#[pyo3(transparent)]` option can be used to
forward the implementation to the inner type.
```rust,no_run
# #![allow(dead_code)]
# use pyo3::prelude::*;
// newtype tuple st... | Markdown |
OCMS_API_URL
const API_URL_PREVIEW = process.env.DATOCMS_API_URL_PREVIEW
const API_TOKEN = process.env.DATOCMS_API_TOKEN
interface FetchOptions {
preview: boolean,
variables?: any
}
async function fetchAPI(query: string, options: FetchOptions = { preview: false }) {
if (!API_URL_PREVIEW || !API_URL) retur... | Typescript |
?
Color(
r: (r * _darkerPercentOfOrig).round(),
g: (g * _darkerPercentOfOrig).round(),
b: (b * _darkerPercentOfOrig).round(),
a: a);
Color get lighter =>
_lighter ??
Color(
r: r + ((255 - r) * _lighterPercentOfOrig).round(),
g: g + ((255 -... | Dart |
y + sizeZ,
x + sizeZ + sizeX,
y + sizeZ + sizeY
)
// East
output.drawQuadImage(
images[4],
x + sizeZ + sizeX,
y + sizeZ,
x + sizeZ + sizeX + sizeZ,
y + sizeZ + sizeY
)
// North
... | Kotlin |
///////////////////////////////////////////
// DEFAULT THEME
$color-bg-primary: $color-red !default;
$color-text-primary: rgb(49, 79, 79) !default;
$color-text-primary-shadow: $color-white !default;
$color-text-alert: rgb(237, 49, 96) !default;
$color-a: da... | CSS |
)
bounds.right = textPainter.measureText(initials, 0, initials.length)
bounds.bottom = textPainter.descent() - textPainter.ascent()
bounds.left += (areaRect.width() - bounds.right) / 2.0f
bounds.top += (areaRect.height() - bounds.bottom) / 2.0f
val halfSize = (avatarSize / 2).to... | Kotlin |
T(T0, ZERO, T0)
EMIT_OP XOR(S1, S1, T0)
j finish_opcode
nop
.align 5
apu_clrc: // CLRC
// Update the JIT register state
jal load_flags
ori s1, s1, FLAG_SF
// Emit code to clear the C flag
EMIT_OP ANDI(S1, S1, 0xFE)
j finish_opcode
nop
.align 5
apu_setc: // SETC
// Update t... | Assembly |
ventLogReader(query, bookmark: null));
Assert.Throws<EventLogException>(() => new EventLogReader(query, bookmark: Helpers.GetBookmark("Application", PathType.LogName)));
}
else
{
Assert.Throws<EventLogException>(() => new EventLogReader(query));
... | C# |
# RISC-V Compliance Test XOR-01
#
# Copyright (c) 2019, Imperas Software Ltd.
# 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 the above copyrigh... | Assembly |
03
vol $6
note ds5 $03
rest $03
vol $4
note ds5 $03
rest $03
vol $4
note ds5 $03
rest $03
vol $3
note ds5 $03
rest $3f
vol $7
note a4 $03
rest $03
vol $6
note a4 $03
rest $03
vol $4
note a4 $03
rest $03
vol $7
note ds5 $03
rest $03
vol $6
note ds5 $03
rest $03
vol $4
note ds5 $03
rest $... | Assembly |
', name_english: 'Mega US gallons per day'},
{value: 1367, unit: 'ImpGal/s', name: 'Imperial Gallonen pro Sekunde', name_english: 'Imperial gallons per second'},
{
value: 1368,
unit: 'ImpGal/min',
name: 'Imperial Gallonen pro Minute',
name_english: 'Imperial gallons per minute'
... | Typescript |
(PATH2)
FileUrlResource(PATH3)
resourceLoader!!.getResource(PATH3)
applicationContext!!.getResource(PATH3)
}
}
@Service
class ResourceServiceFields {
val PATH: String = "application1.properties"
val PATH1: String = PATH
val PATH2: String = "/$PATH1"
val PATH3: String = "clas... | Kotlin |
USER_ID_KEY = "user_id"
private const val USER_INFO_KEY = "user_info"
private const val TOKEN_EXPIRY_KEY = "token_expiry"
}
/**
* 保存访问令牌
* @param token 访问令牌
*/
override suspend fun saveAccessToken(token: String) {
localStorage.saveString(ACCESS_TOKEN_KEY, token)
}... | Kotlin |
x<Vec<MockCall<()>>>,
comment_pr_calls: Mutex<Vec<MockCall<()>>>,
create_branch_calls: Mutex<Vec<MockCall<()>>>,
delete_branch_calls: Mutex<Vec<MockCall<()>>>,
approve_pull_request_calls: Mutex<Vec<MockCall<()>>>,
get_timeline_calls: Mutex<Vec<MockCall<Vec<TimelineEvent>>>>,
get_suites_calls: Mu... | Rust |
) by providing his own logic show/hide icon and usability.
* @param overrideFn: override function callback
*/
usabilityOverride(overrideFn: UsabilityOverrideFn) {
this._usabilityOverride = overrideFn;
}
setOptions(newOptions: RowMoveManagerOption) {
this._addonOptions = { ...this._addonOptions, ...... | Typescript |
/*
* Copyright (C) 2012-2013 Red Hat, Inc.
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | C |
e context these provide to child components
## How to Check if Something Needs Mocking
1. **Look at existing tests** - Find similar components and see what they mock
2. **Try without mocking first** - Often test-utils provide what you need
3. **Portal components always need mocking** - Dropdown, Dialog, Popover, etc.... | Markdown |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C |
hljs {
display: block;
background: black;
color: #eaeaea;
padding: 0.5em;
}
.coffeescript .javascript,
.javascript .xml,
.tex .hljs-formula,
.xml .javascript,
.xml .vbscript,
.xml .css,
.xml .hljs-cdata {
opacity: 0.5;
}
/*!
Timeline JS 3
Designed and built by Zach Wise for the Northwestern University K... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.