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
FROM nginx:latest | |
# Remove the default nginx configuration file | |
RUN rm /etc/nginx/conf.d/default.conf | |
# Copy a new configuration file from the current directory | |
COPY nginx.conf /etc/nginx/conf.d/ | |
# Expose ports | |
EXPOSE 9600 |
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 jbang "$0" "$@" ; exit $? | |
//DEPS info.picocli:picocli:4.2.0 | |
import picocli.CommandLine; | |
import picocli.CommandLine.Command; | |
import picocli.CommandLine.Parameters; | |
import java.util.concurrent.Callable; | |
import java.io.InputStreamReader; |
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 socket | |
class Resolver: | |
def __init__(self): | |
self._cache = {} | |
def __call__(self, host): | |
if host not in self._cache: | |
self._cache[host] = socket.gethostbyname(host) | |
return self._cache[host] | |
def listCache(self): |
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
package ds._001.intro; | |
import java.util.concurrent.ThreadLocalRandom; | |
public class RandomPickDemo { | |
public static void main(String[] args) { | |
// Original Array | |
int[] intArray = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
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
#include <stdio.h> | |
#include <dirent.h> | |
#include <sys/types.h> | |
printInfo(struct dirent *info) | |
{ | |
if(info == NULL) { | |
return; | |
} | |
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
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(int argc, char * argv[]) | |
{ | |
struct stat sb; | |
char *filetype[] = { |
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
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
if(argc != 2) { | |
printf("usage: %s <filename>\n", argv[0]); | |
exit(1); | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>3d Rotation Face Example</title> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>3d Rotation On XYZ-Axis Example</title> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>3d Rotation On Z-Axis Example</title> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> |
NewerOlder