This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getSitePositionAds($site_id, $position_id, $container_width) | |
{ | |
$ads = Ad::leftJoin('sites', 'sites.id', '=', \DB::raw($site_id)) | |
->leftJoin('positions', 'positions.id', '=', \DB::raw($position_id)) | |
->leftJoin('ad_position', function ($join) use ($position_id) { | |
$join->on('ad_position.ad_id', '=', 'ads.id') | |
->on('ad_position.position_id', '=', 'positions.id'); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static function generateImage($request, $user, $file) | |
{ | |
$path = "/storage/$user->id/"; | |
$filename = str_random(30) . '.' . $file->getClientOriginalExtension(); | |
$png_path = ''; | |
$ext = $file->getClientOriginalExtension(); | |
$file->move(public_path($path), $filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template v-for="item in items"> | |
<tr v-if="!item.editing"> ... </tr> | |
<tr v-if="item.editing"> ... </tr> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button dynamic="attrs.bind: attrs">Button</button> | |
<!-- Generated HTML: <button name="foo" type="bar" dynamic="attrs.bind: attrs">Button</button> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="session-container-list"> | |
<li class="session-container" | |
*ngFor="let container of containers" | |
[class.empty-container]="container.sessions.length === 0" (click)="container.sessions.length === 0&&!isPublic&&!isAnalytics&&addNewSession(container)" [style.cursor]="(!isPublic&&!isAnalytics)?'pointer':'auto'"> | |
<ul *ngIf="!isPublic" class="session-list" | |
[dragula]='"column"' [dragulaModel]='container.sessions' | |
data-column-type="absolute" | |
[attr.data-container]="getContainerData(container) | json"> | |
<li class="session-wrapper" | |
*ngFor="let session of container.sessions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Replace occurrences of the search string with the replacement string. | |
* | |
* Parameters: | |
* string[] - The string to perform the replacing in. | |
* search[] - The string to look for. | |
* replacement[] - The string to put instead of "search". | |
* ignorecase - Whether the search for "search" should be case-insensitive. Defaults to false. | |
* pos - The position to start at. Defaults to 0 (the beginning). | |
* limit - Limit the number of replacements. Defaults to -1 (no limit). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pakraunam container info iš failo į ram | |
Container_Load(Equipment, 1, "scriptfiles", "Test_ItemRemoval_2"); | |
// perkeliam itemą į kitą konteinerį | |
Container_AddItem(Player, 1, item); | |
// ištrinam itemą | |
DeleteItem(item); | |
// Itemo Equipment[2] neturėtų būti, tačiau jis ten tebėra, wtf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stock bool:Callback_Get(callback:name, ret[E_CALLBACK_DATA], expect[] = "", bool:remote = false) | |
{ | |
P:2("Callback_Get called: %s", name); | |
Inline_Reset(ret); | |
if (!(callback_tag:0 < name[0] < callback_tag:128)) | |
{ | |
P:3("Callback_Get: Found resolved callback."); | |
// Resolved inline. | |
return bool:memcpy(_:ret[E_CALLBACK_DATA:0], name[0], 0, _:E_CALLBACK_DATA * 4, _:E_CALLBACK_DATA); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li class="ipsList_withbackground clearfix"> | |
<div class="left"> | |
<img src="http://daroma.wu.lt/public/style_images/guardian/profile/default_large.png" alt="Nuotrauka" class="ipsUserPhoto ipsUserPhoto_mini"> | |
</div> | |
<div class="list_content"> | |
<a href="http://daroma.wu.lt/index.php?/topic/2-sd/" rel="bookmark" class="ipsType_small" title="SD Tema sukurta 15 December 2016 - 07:00 PM">SD</a> | |
<p class="desc ipsType_smaller"> | |
Darijus | |
- Dec 15 2016 07:00 PM | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENEMY_DATA | |
COL | |
R | |
WIDTH | |
47 | |
HEIGHT | |
25 | |
,dM | |
dMMP | |
dMMM' |
OlderNewer