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
#!/bin/bash | |
# apt syntax -> pacman wrapper | |
case "$1" in | |
"install") | |
pacman -S ${@:2} | |
;; | |
"remove") |
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
static int bytesFindIndexOfQuery(byte[] bytes, byte[] query) { | |
int bytesLen = bytes.length; | |
int queryLen = query.length; | |
int limitLen = (bytesLen - queryLen) + 1; | |
outer: for (int i = 0; i < limitLen; i++) { | |
for (int ii = 0; ii < queryLen; ii++) { | |
if (bytes[i + ii] != query[ii]) { | |
continue outer; | |
} | |
} |
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 $title = __("Downloads"); | |
require(__DIR__.'/lib/common.php'); ?> | |
<style> | |
#myInput { | |
background-image: url('/css/searchicon.png'); /* Add a search icon to input */ | |
background-color: white; | |
color: black; | |
background-position: 10px 12px; /* Position the search icon */ | |
background-repeat: no-repeat; /* Do not repeat the icon image */ |