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 boto3 | |
from moto import mock_s3 | |
import pytest | |
class TestClassTemplateUsingMoto: | |
@classmethod | |
def setup_class(cls): | |
cls.__mock_s3 = mock_s3() | |
cls.__mock_s3.start() | |
s3_resource = boto3.resource("s3") |
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 { LitElement } from 'lit' | |
/** | |
* Abstract LitElement class for main DOM | |
* This class moves child elements into slots after rendering | |
* @slot - Derived class can use slot element | |
*/ | |
export abstract class LitMainDomElement extends LitElement { | |
// | |
// Class methods |
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
void setup() { | |
size(1280, 720, P3D); | |
noFill(); | |
noiseSeed(88); | |
frameRate(24); | |
smooth(); | |
blendMode(ADD); | |
sphereDetail(18); | |
} | |
final int C = 360; |
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
/** | |
* @file 一つのファイルで完結するシンプルなReact+Reduxアプリケーションサンプル | |
*/ | |
import React from "react"; | |
import { render } from "react-dom"; | |
import { createStore } from "redux"; | |
import { Provider, connect } from "react-redux"; | |
// |
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
final String sampleText = "Installed font catalogue"; | |
int fontSize = 24; | |
String[] fontNames; | |
PFont[] fonts; | |
float originY = 0; | |
int lineHeight = 0; | |
boolean sizeChanging = false; | |
void setup() { |
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
uniform sampler2D texture; | |
uniform ivec2 u_size; | |
out vec4 o_fragColor; | |
void main() | |
{ | |
vec4 color = texture(texture, gl_FragCoord.xy / u_size); | |
float grayScale = ((color.r * 0.109375) + (color.g * 0.30078125) + (color.b * 0.58984375)); | |
o_fragColor = vec4(grayScale, grayScale, grayScale, 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 java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Future; | |
import java.util.concurrent.TimeUnit; |
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
int x; | |
PImage sourceImg; | |
void setup() { | |
size(1280, 720); | |
x = (int)random(width); | |
sourceImg = loadImage("(set image file path here)"); | |
sourceImg.resize(width, height); | |
frameRate(24); | |
} |