It is recommended to create an object, that stores the original text, so that you can use an event listener for fluid and responsive designs.
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
public class Hanoi { | |
//Goal is to write a program where discs can not jump from position A to C, they need to move to position B in order to get to position C. | |
static void move ( | |
int n, // Number of discs 'n' | |
char start, // start position | |
char help, // helping position (place in the middle) | |
char destination) { // destination position |
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
<quiz> | |
<film id="Mercury" | |
onCorrect="Very nice! | |
Here is more information: http://solarsystem.nasa.gov/planets/mercury" | |
onWrong="It is Mercury. | |
Here is more information: http://solarsystem.nasa.gov/planets/mercury"> | |
<label> | |
<text>What is this celestial object?</text> | |
</label> | |
<label> |
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
# Google App Engine configation | |
env_variables: | |
FEATURE_CORS_ENABLED: false |
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
# Calls a function: | |
When I add 1 to my sum |
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 { testAgainstSchemaDeeply } from "./utils"; | |
interface IMyObject { | |
name: string | |
{[key: string]: any} | |
} | |
class ObjectSchema { | |
name: any | |
} |
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
# It assumes you have templates setup and to be recognized. | |
# the extends command takes the extension of this template Yaml file. | |
# A Kaniko example: | |
.docker-build: | |
stage: my-stage | |
only: | |
- master | |
image: | |
name: gcr.io/kaniko-project/executor:debug |
I hereby claim:
- I am birgitpohl on github.
- I am birgitpohl (https://keybase.io/birgitpohl) on keybase.
- I have a public key ASDsnJR1Q1t_fjtpQY_J07NVf76ujyI-7EPA_JrPZInzzgo
To claim this, I am signing this object:
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
/** | |
* @param hex HexColor #000000 #000 | |
* @param opacity 0-100 | |
* @returns `rgba(RR, GG, BB, 0.x)` | |
*/ | |
export const hexToRgbA = <T extends string>(hex: HexColor<T>, opacity: number): T => { | |
let c; | |
if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)){ | |
c = hex.substring(1).split(''); | |
if(c.length == 3){ |