🏳️⚧️
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 java.io.*; | |
import java.nio.file.Files; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Iterator; | |
public class MainClass { | |
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
<html> | |
<head> | |
<title>XSS Protector!</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<form method="post" action="result"> | |
<label for="input">Input : </label> | |
<input type="text" name="input"></input> | |
</form> |
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 from 'react'; | |
import Grid from 'react-mdc-web/lib/Grid/Grid'; | |
import Cell from 'react-mdc-web/lib/Grid/Cell'; | |
import Textfield from 'react-mdc-web/lib/Textfield/Textfield'; | |
export default function ComingSoon() { | |
return ( | |
<div> | |
<h1 style={{ textAlign: 'center' }}>{'Coming soon'}</h1> | |
<Grid> |
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 from 'react'; | |
import Textfield from 'react-mdc-web/lib/Textfield/Textfield'; | |
export default function ComingSoon() { | |
return ( | |
<div> | |
<h1 style={{ textAlign: 'center' }}>{'Coming soon'}</h1> | |
<div className="mdc-layout-grid"> | |
<div className="mdc-layout-grid__inner"> | |
<div className="mdc-layout-grid__cell mdc-layout-grid__cell--span-3"> |
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
" plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'StanAngeloff/php.vim' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'cocopon/iceberg.vim' | |
Plug 'mileszs/ack.vim' | |
Plug 'jiangmiao/auto-pairs' |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int *initializeNumbers(int size) { | |
int *numbers = malloc(sizeof(int) * size); | |
for(int i = 0; i < size; i++) { | |
numbers[i] = i + 1; | |
} |
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
public class Counter { | |
private int count = 1; | |
private int max; | |
public Counter(int max) { | |
this.max = max; | |
} | |
public int getCount() { |
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
public class Pancake { | |
private int size; | |
public Pancake(int size) { | |
this.size = size; | |
} | |
public int size() { | |
return size; | |
} |
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 java.util.LinkedList; | |
import java.lang.Object; | |
public class HashTable { | |
private final int size = 100; | |
private final LinkedList<Object>[] keyValues; | |
public HashTable() { | |
keyValues = new LinkedList[size]; | |
} |
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 weak_goldbach(number): | |
if is_pair(number): | |
raise InvalidNumberError(number + "is pair") | |
if number <= 5: | |
raise InvalidNumberError(number + "is equal or less than 5") | |
primes = find_primes_before_number(number) | |
return three_primes_sum(number, primes) | |
def is_pair(number): | |
if number % 2 == 0: |
OlderNewer