Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
ericakfranz / envira-gallery-remove-media-button.php
Created September 3, 2017 04:09
Remove the Add Gallery button on post / page edit screen.
@rain1024
rain1024 / tut.md
Last active May 6, 2024 06:12
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@geovannimp
geovannimp / cSpell_packageJson_dictionary.md
Last active May 6, 2024 06:11
cSpell package.json dictionary

cSpell package.json dictionary with monorepo support

Create the following files in the .vscode folder of your repo

.vscode/cspell.json

{
  "import": ["./cspell-node.config.cjs"]
}

.vscode/cspell-node.config.cjs

@faressoft
faressoft / dom_performance_reflow_repaint.md
Last active May 6, 2024 06:11
DOM Performance (Reflow & Repaint) (Summary)

DOM Performance

Rendering

  • How the browser renders the document
    • Receives the data (bytes) from the server.
    • Parses and converts into tokens (<, TagName, Attribute, AttributeValue, >).
    • Turns tokens into nodes.
    • Turns nodes into the DOM tree.
  • Builds CSSOM tree from the css rules.
@shelooks16
shelooks16 / .prettierrc
Created September 10, 2021 22:40
Prettier
{
"trailingComma": "none",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"arrowParens": "always"
}
@shelooks16
shelooks16 / settings.json
Created September 7, 2021 20:56
Vscode configuration
{
// security trust window, open = not shown
"security.workspace.trust.untrustedFiles": "open",
// configure git-bash (windows-only for git-bash users)
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": ["-l", "-i"]
}
@iuliandita
iuliandita / alacritty.toml
Last active May 6, 2024 06:09
Alacritty TOML config file, with all defaults present (commented out), in the proper order. Color scheme is Catpuccin Mocha.
# alacritty.toml
# commented lines are the defaults
# man 5 alacritty (>0.13) for full config manual
#import = [
#"~/.config/alacritty/catpuccin-mocha.toml",
#"~/.config/alacritty/keybindings.toml",
#]
[shell]
Koruyucu mezar taşına ulaşmak ne kadar sürer?
KORUYUCU MEZAR TAŞI KÖYÜN YAKINLARINDA, BU YÜZDEN ORAYA VARMAK UZUN SÜRMEZ.
Bu arada, köydeki atmosfer biraz....
İnsanların ifadeleri de biraz tuhaf görünüyor.
SENİ UTANMAZ PİÇ! NASIL BAŞIN DİK DOLAŞABİLİYORSUN?!
@CannibalVox
CannibalVox / Results
Created September 8, 2019 01:10
NLua vs. MoonSharp
fib(35) NLua - 00:00:01.0882426
fib(35) MoonSharp - 00:00:13.2349632
fib(15)x10k NLua - 00:00:00.7859748
fib(15)x10k MoonSharp - 00:00:08.7014046
fib(15)x10k+Binding NLua - 00:00:21.9166036
fib(15)x10k+Binding MoonSharp - 00:00:14.6797089
@srimalonline
srimalonline / TodoDAO.java
Last active May 6, 2024 05:58
j2ee-todo-mav-dao
package dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import model.Todo;