This file contains hidden or 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 Solution { | |
public int minSwaps(String s) { | |
int balance = 0; | |
int minBalance = 0; | |
for (int i = 0; i <= s.length(); i++) { | |
char c = s.charAt(i); | |
if (c == '[') { | |
balance++; | |
} else if (c == ']') { |
This file contains hidden or 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 function index(Request $request) | |
{ | |
$this->authorize('view-any', Post::class); | |
$users = User::all(); | |
$data = Post::select('*'); | |
if ($request->ajax()) { | |
return Datatables::of($data) | |
->addIndexColumn() | |
->addColumn('action', function($row){ |
This file contains hidden or 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 | |
$text = "Your Text Here | |
this is a test of the things and stuff and things"; | |
$font_size = "12"; | |
$color = "#000000"; | |
$font_file = "/Applications/XAMPP/xamppfiles/htdocs/otcb/app/fonts/OldStreetSigns.ttf"; | |
$background = "#FFFFFF"; | |
$wrap_width = "250"; | |
$alpha = 0; |
This file contains hidden or 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
comments are used in a program to document a progran abd enhance its readability | |
Preprocessor directive - before you compile just do this(include headers) #include (pound sign) | |
stdio.h - header file | |
<> - for prebuilt headers | |
"" - for user defined headers | |
you can create your own header files | |
Format Specifiers | |
%s |
This file contains hidden or 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
// 1 | |
created(){ | |
this.fetchUserList() | |
} | |
watch:{ | |
searchText:'fetchUserList' | |
} |
This file contains hidden or 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
# Installation of SSL Certificate | |
## Enable SSH : | |
ssh x123011738@31.170.164.22 -p 65002 | |
## Download acme-client | |
git clone https://github.com/kelunik/acme-client | |
## Install composer | |
``` |
This file contains hidden or 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
adb tcpip 5555 | |
// setting->about phone->status->ip | |
adb connect 192.168.0.102 |
This file contains hidden or 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
expo init <appNam> | |
//run app | |
npm start |
This file contains hidden or 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
https://www.udemy.com/course/aws-certified-solutions-architect-associate-saa-c02/learn/lecture/13528058#overview | |
ec2 | |
ssh -i pemfile ec2-user@ip | |
useradta///// | |
#!bin/bash | |
#install httpd (Linux 2 version) |
This file contains hidden or 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
https://nerdcave.com/tailwind-cheat-sheet |
NewerOlder