[ Launch: perlin ink ] 6dccc985480cc4ce2c89 by tortillaj[ Launch: perlin ink ] c398dead2022827e9b01 by enjalot[ Launch: perlin ink ] 6096421 by enjalot[ Launch: perlin ink ] 5087625 by enjalot[ Launch: perlin wormsss ] 5080123 by enjalot[ Launch: perlin worms combo ] 5080115 by enjalot[ Launch: perlin worms tan ] 5080107 by enjalot[ Launch: perlin noise ] 5062000 by enjalot[ Launch: perlin noise ] 5061982 by enjalot
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
#!/bin/bash | |
# Database credentials | |
user="XXXXX" | |
password="XXXXX" | |
host="XXXXX" | |
db_name="XXXXX" | |
# Other options | |
backup_path="/location/of/your/backups" |
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 ( | |
"fmt" | |
"math" | |
) | |
func NewtonSqrt(x float64, z float64) float64 { | |
return z - ((math.Pow(z, 2.0) - x) / (2 * z)) | |
} |
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
<div> | |
<h1>This text is red</h1> | |
<p>Yet paragraphs are blue. <a href="#">Links are blue too.</a></p> | |
</div> |
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
<div> | |
<h1>Nesting classes and elements</h1> | |
<p>Elements and classes can be nested. Here we nested a paragraph tag. <a href="#">Links can be nested too.</a></p> | |
<p class="highlighted-text">Classes can be nested too!</p> | |
</div> |
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
<div class="container"> | |
<h1>Nesting with the Ampersand Operator</h1> | |
<a href="#">It's common to use & on link styles.</a> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ultrices, justo vel vulputate viverra, tortor nulla porta sem</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ultrices, justo vel vulputate viverra, tortor nulla porta sem</p> | |
<p class="container__note">Here is a different kind of ampersand usage.</p> | |
</div> |
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
<p class="button">Button</p> | |
<p>Somtimes you don't have control over the CSS class. In that case, you can "extend" a previously made class.</p> | |
<p class="something-else">Read More</p> | |
<p>Try overriding a propery in the .something-else class after the @extend directive.</p> |
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
<p>A "placeholder" class does not print out the class itself. It is useful when you have CSS properties that don't apply to any specific element in the HTML, but will be used in many places on elements with different selectors.</p> | |
<p class="something-else">Read More</p> | |
<p>Try overriding a propery in the .something-else class after the @extend directive.</p> |
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
<h1>Mixins</h1> | |
<p>Mixins are very useful when you have many elements that have the same basic styles, but with a few differences.</p> | |
<p>Some examples are buttons. Maybe sometimes a button is blue, other times there are green buttons, and other times the button is transparent.</p> | |
<p>A mixin is a kind of function that will let you feed it parameters to make these minor changes to common styles.</p> | |
<p>The @mixin directive let's you declare (define) a mixin.</p> | |
<p>The @include directive let's you use a mixin.</p> | |
<p class="button">Read More</p> | |
<a class="button-red">Important!</a> |
[ Launch: sin waves ] 53ded0c8b831be4c8e7c7b0281a1e89e by tortillaj See Previous Inlet [ Gist ]
OlderNewer