Skip to content

Instantly share code, notes, and snippets.

View monodyle's full-sized avatar
🙊
Out of money

Monody Le monodyle

🙊
Out of money
View GitHub Profile
@monodyle
monodyle / subdomain_wordlist.md
Created September 6, 2020 12:11 — forked from cihanmehmet/subdomain_wordlist.md
Subdomain Wordlist
@monodyle
monodyle / textJustify.ts
Created February 18, 2020 17:25
LeetCode - #68 Problem: Text Justification
/*
* Problem:
* Given an array of words and a length l, format the text such that each line has exactly l characters and is fully justified on both the left and the right. Words should be packed in a greedy approach; that is, pack as many words as possible in each line. Add extra spaces when necessary so that each line has exactly l characters.
* Extra spaces between words should be distributed as evenly as possible. If the number of spaces on a line does not divide evenly between words, the empty slots on the left will be assigned more spaces than the slots on the right. For the last line of text and lines with one word only, the words should be left justified with no extra space inserted between them.
* Example:
* For ["This", "is", "an", "example", "of", "text", "justification."]
* and l = 16, the output should be ["This is an",
* "example of text",
* "justification. "]
*
@monodyle
monodyle / NgayThangNam.php
Last active January 3, 2020 09:06
Test: /NgayThangNam.php?ngay=[int]&thang=[int]&nam=[int]
<?php
class NgayThangNam {
protected $ngay, $thang, $nam;
function __construct($ngay = 1, $thang = 1, $nam = 2020)
{
if (is_string($ngay) || is_string($thang) || is_string($nam)) {
print("Dữ liệu nhập vào không hợp lệ");
return;
}
@monodyle
monodyle / lamp-win.md
Created October 22, 2019 11:33 — forked from lelinhtinh/lamp-win.md
Cài đặt LAMP server trong WSL

Cài đặt LAMP server trong WSL

Cài đặt Ubuntu

Kích hoạt WSL (Windows Subsystem for Linux) bằng cách mở PowerShell với quyền Admin (Run as administrator), và chạy lệnh:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Khởi động lại máy.

Keybase proof

I hereby claim:

  • I am monodyle on github.
  • I am monodyle (https://keybase.io/monodyle) on keybase.
  • I have a public key ASCcN81DnqgOjuqPaT0p5oyq1I4uGV3Qw-LxS4jSZWyRawo

To claim this, I am signing this object:

javascript:
var host = window.location.hostname;
var pathname = window.location.pathname;
var fullurl = host + pathname;
var https_host = "https://" + host + pathname;
var ps = fullurl.split("/")[1];
switch (host) {
case "www.instagram.com":
switch(ps) {
case "p":
@monodyle
monodyle / gitflow-breakdown.md
Created June 10, 2019 08:33 — forked from JamesMGreene/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@monodyle
monodyle / README.md
Created June 9, 2019 11:22 — forked from mul14/README.md
Simple Laravel Search Trait

Usage

Put SearchTrait.php in app directory. Then use SearchTrait in your model, like so

use App\SearchTrait;
use Illuminate\Database\Eloquent\Model;

class Article extends Model {
@monodyle
monodyle / MessengerAttachmentsScanner.js
Created December 25, 2018 07:11 — forked from monokaijs/MessengerAttachmentsScanner.js
Scan Facebook Messages for attachments.
(() => {
/*
Author: @MonokaiJsp (MonokaiJs | https://omfg.vn)
>>>>>>> Free for Personal Usage.
======= Donate me: https://omfg.vn/donate
======= Github: https://github.com
======= Gists
*/