Skip to content

Instantly share code, notes, and snippets.

View chiayolin's full-sized avatar

Chiayo chiayolin

  • University of Maryland, College Park
  • Washington, DC
  • 13:05 (UTC -04:00)
View GitHub Profile

hello, world

import re
N = 5
# deserialize wordlist file
with open('/usr/share/dict/words') as f:
words = f.readlines()
words = filter(lambda w: len(w) == N,
map(lambda w: w.rstrip().lower(), words))
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]) {
int opt_n = !--argc || !strncmp(argv[1], "-n", 2);
if (opt_n)
argc--, argv++;
/* on mobile screen */
@media screen and (max-width: 800px) {
/* hide mobile header */
.header-burger,
.header-display-mobile {
display: none;
}
/* show desktop header */
.header-nav,
version: "3.7" # the compose file version we will be using
# define a list of docker services (i.e. containers)
services:
# define a service named grafana. this name is also resolved to the
# container's IP address by Docker's internal DNS.
grafana:
# this service (container) will be using the offical grafana image

Jelly Beans Terminal Color Theme

image

Terminal Colors

:

import java.util.Arrays;
public class b {
public static void main(String[] main) {
/* input data */
int[] a = {1, 4, 6, 9, 10};
int[] b = {2, 4, 5, 6, 8, 9};
int i, j, t, acc;
def is_prime(n):
for i in range(2, n):
if not (n % i):
return False
return n > 1
def helper(j, k):
if is_prime(j) and is_prime(k):
print(j, k)
return True
def is_prime(n):
for i in range(2, n):
if not n // i:
return False
return n > 1
def helper(j, k):
if is_prime(j) and is_prime(k):
print(j, k)
return True
def is_prime(n):
for i in range(2, n):
if n // i:
return False
return n > 1
def helper(j, k):
if is_prime(j) and is_prime(k):
print(j, k)
return True