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 main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
_ "github.com/joho/godotenv/autoload" |
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 <iostream> | |
#include <string> | |
#include <type_traits> | |
struct Foo | |
{ | |
std::string content; | |
const std::string& get() const | |
{ |
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
/* | |
* checking some assumptions | |
* compile with: clang++ -Weverything -Wno-c++98-compat -std=c++17 -o noncopyable noncopyable.cc | |
*/ | |
#include <iostream> | |
#include <type_traits> | |
class Default {}; |
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 <stdlib.h> | |
#include <assert.h> | |
#include <stdio.h> | |
struct queue { | |
size_t cap, start, size; | |
int store[0]; | |
}; | |
struct queue* new_queue(size_t cap) |
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 graphviz | |
g = { | |
'A': ['B', 'C', 'D', 'F'], | |
'B': ['C', 'D'], | |
'D': ['A', 'C'], | |
'C': [], | |
'E': ['C', 'G'], | |
'F': ['A', 'C'], | |
'G': ['E'] |
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
static | |
PyObject* pepi_module_init(void) { | |
PyObject *m; | |
if (PyType_Ready(&pepy_parsed_type) < 0 || | |
PyType_Ready(&pepy_section_type) < 0 || | |
PyType_Ready(&pepy_import_type) < 0 || | |
PyType_Ready(&pepy_export_type) < 0 || | |
PyType_Ready(&pepy_relocation_type) < 0 || | |
PyType_Ready(&pepy_resource_type) < 0) |
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 keras import backend as K | |
from keras.layers import Input, Dense, merge, Dropout, Lambda, LSTM, Masking | |
from keras.models import Model, Sequential | |
from keras.optimizers import SGD, RMSprop, Adam, Nadam | |
from sys import argv | |
import argparse | |
import csv | |
import json | |
import numpy as np | |
import pickle |