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 io.lettuce.core.ReadFrom; | |
import io.lettuce.core.cluster.ClusterClientOptions; | |
import io.lettuce.core.cluster.ClusterTopologyRefreshOptions; | |
import org.springframework.boot.autoconfigure.data.redis.RedisProperties; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.data.redis.connection.ReactiveRedisClusterConnection; | |
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory; | |
import org.springframework.data.redis.connection.RedisClusterConfiguration; | |
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration; |
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 com.cozy; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.util.Map; | |
public class BowlingHashMap { | |
HashMap<String, Integer> players; | |
BowlingHashMap() { |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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 flask.views import MethodView | |
from flask import jsonify, request, abort | |
import uuid | |
import os | |
from werkzeug.utils import secure_filename | |
class MediaAPI(MethodView): | |
def __init__(self): |
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 flask.views import MethodView | |
from flask import jsonify, request, abort | |
import uuid | |
import os | |
from werkzeug.utils import secure_filename | |
class UploadAPI(MethodView): | |
def __init__(self): |
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 flask.views import MethodView | |
from flask import jsonify, request, abort | |
import uuid | |
import os | |
from io import BytesIO | |
from PIL import Image | |
import base64 | |
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 os | |
i = 0 | |
for file in os.listdir("."): | |
dst = str(i) + ".jpeg" | |
src = file | |
dst = dst | |
os.rename(src,dst) | |
i +=1 |
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 "../../assets/scss/abstracts/variables"; | |
@import "../../assets/scss/abstracts/mixins"; | |
.article { | |
padding: 4rem; | |
// Article Main Body | |
&__main { | |
padding: 2rem 10rem 10rem 10rem; | |
} |
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 React from "react"; | |
import hotpost from "../../assets/img/hot-post-1.jpg"; | |
const ArticleView = () => { | |
return ( | |
<div className='article__header'> | |
<h4 className='heading-main'>The Blog Heading Goes Here</h4> | |
<div className='article__credits'> | |
Written by <span className='article__author'>Cosmas Cozy </span> | |
on <span className='article__date'>22 Oct 2019</span> |
NewerOlder