14.04.2019 Foundation of data system
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
def A | |
def say | |
p "in A" | |
end | |
end | |
a = A.new | |
def a.say | |
p "in singleton" | |
end |
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
module A | |
def say | |
p "in A" | |
end | |
end | |
module B | |
include A | |
def say |
#include <bits/stdc++.h>
#include <thread>
#include <atomic>
using namespace std;
int MODULO = 123456789;
#define ll long long
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 <bits/stdc++.h> | |
using namespace std; | |
int main() | |
{ | |
ios_base::sync_with_stdio(false); | |
cin.tie(NULL); | |
return 0; | |
} |
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
import React, { Component } from 'react' | |
import config from './particles.json' | |
class Particlejs extends Component { | |
componentDidMount() { | |
let script = document.createElement('script') | |
script.onload = function() { | |
particlesJS.load('particlejs', config) | |
} | |
script.src = "https://cdn.jsdelivr.net/npm/[email protected]/particles.min.js" |
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
set background=dark | |
if version > 580 | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
endif | |
set t_Co=256 | |
let g:colors_name = "flattown" |
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
### Install Java 8 | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get install oracle-java8-installer -y | |
### Download and install the Public Signing Key | |
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
### Setup Repository |