Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
const readFile = (...args) => { | |
return new Promise((resolve, reject) => { | |
fs.readFile(...args, (err, data) => { | |
if (err) reject(err) | |
resolve(data) | |
}) | |
}) | |
} |
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 | |
namespace App\Http\Middleware; | |
use Response; | |
use Exception; | |
class CSV | |
{ | |
/** | |
* downlaod csv file |
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
FROM python:3 | |
RUN apt update \ | |
&& apt upgrade -y \ | |
&& apt install -y libdbus-glib-1-2 libgtk2.0-0 libX11-xcb-dev xvfb\ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& echo 'export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"' >> ~/.bash_profile \ | |
&& . ~/.bash_profile \ | |
&& cd /tmp \ | |
&& wget -q https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz \ |
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
FROM jupyter/datascience-notebook | |
USER root | |
RUN apt-get update \ | |
&& apt-get install mpich -y \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
USER $NB_USER |
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
#!/bin/bash | |
# | |
# ychat | |
# simple multicast chat tools on the shell (only supported bash) | |
# copyrights: koki yasuda aka orleika <[email protected]> | |
# Licensed under MIT | |
# | |
# Usage: | |
# ychat | |
# |
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
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct in_addr localInterface; | |
struct sockaddr_in groupSock; |
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
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
struct sockaddr_in localSock; |
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
mov $m, %rsi | |
mov $280, %rdx | |
mov $1, %rdi | |
mov $1, %rax | |
syscall | |
push $34 | |
mov %rsp, %rsi | |
mov $1, %rdx | |
mov $1, %rax | |
syscall |