- / = domain.com (Front-end app)
- /admin = domain.com/admin (Front-end app)
- /api = domain.com/api (Node.js, running on 3000 port)
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 | |
function normalizeFiles() | |
{ | |
$files = []; | |
$multiple = false; | |
foreach($_FILES as $name => $fileArray) { | |
if(is_array($fileArray["name"])) { | |
$multiple = true; |
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
public class PlayPauseView extends AppCompatImageView { | |
public static final int STATE_PLAY = 1; | |
public static final int STATE_PAUSE = 2; | |
private AnimatedVectorDrawableCompat mPlayToPauseAnim, mPauseToPlay; | |
private Animation mFadeOutAnim, mFadeInAnim; | |
public PlayPauseView(Context context) { | |
super(context); | |
Init(context); |
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 | |
function str_pad_center($prefix, $suffix, $length, $char) { | |
$countWithoutChar = strlen($prefix) + strlen($suffix); | |
if($countWithoutChar > $length) { | |
return ""; // In your case, you may want to change this | |
} | |
$fill = str_repeat($char, $length - $countWithoutChar); | |
- Şu tarayıcı eklentisini yükleyin: https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag?hl=tr
- Bu sayfadaki "Raw" butonuna basın.
- Eklentinin kurulum sayfası açılacak. "Confirm installation"a basarak kurun.
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
@function make-linear-gradient($degree, $stops) { | |
$gradient: (); | |
@each $percentage, $color in $stops { | |
$gradient: append($gradient, $color $percentage, comma) | |
} | |
@return linear-gradient($degree, $gradient) | |
} | |
.sass { |
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
#!/usr/bin/env node | |
import debugFactory from "debug"; | |
import http from "http"; | |
import app from "./../app"; | |
const debug = debugFactory(process.env.DEBUG); | |
/** | |
* Get port from environment and store in Express | |
*/ |
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
#!/usr/bin/env node | |
import debugFactory from "debug"; | |
import dotenv from "dotenv"; | |
import http from "http"; | |
import app from "./../src/app.js"; | |
const debug = debugFactory(process.env.DEBUG); | |
/** |
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
import { fileURLToPath } from "url"; | |
import { dirname, join } from "path"; | |
import { createReadStream, createWriteStream, existsSync, readFileSync, unlinkSync } from "fs"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = dirname(__filename); | |
const io = Object.freeze({ | |
join, | |
existsSync, |
OlderNewer