This file contains hidden or 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
| SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES'; | |
| DELIMITER // | |
| DROP FUNCTION IF EXISTS str_random_lipsum; | |
| // | |
| CREATE FUNCTION str_random_lipsum(p_max_words SMALLINT ,p_min_words SMALLINT ,p_start_with_lipsum TINYINT(1) ) | |
| RETURNS VARCHAR(10000) | |
| NO SQL | |
| BEGIN |
This file contains hidden or 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
| // JAVA REFERENCE IMPLEMENTATION OF IMPROVED NOISE - COPYRIGHT 2002 KEN PERLIN. | |
| public final class ImprovedNoise { | |
| static public double noise(double x, double y, double z) { | |
| int X = (int)Math.floor(x) & 255, // FIND UNIT CUBE THAT | |
| Y = (int)Math.floor(y) & 255, // CONTAINS POINT. | |
| Z = (int)Math.floor(z) & 255; | |
| x -= Math.floor(x); // FIND RELATIVE X,Y,Z | |
| y -= Math.floor(y); // OF POINT IN CUBE. | |
| z -= Math.floor(z); |
This file contains hidden or 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
| (function(){ | |
| "use strict"; | |
| var filterStrength = 20; | |
| var frameTime = 0, lastLoop = new Date, thisLoop; | |
| var loop = function() { | |
| var thisFrameTime = (thisLoop=new Date) - lastLoop; | |
| frameTime+= (thisFrameTime - frameTime) / filterStrength; | |
| lastLoop = thisLoop; |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # aco | |
| # | |
| # Convert an Adobe Color Swatches file to standard hex color codes | |
| import sys, re, os | |
| def main(): | |
| args = sys.argv[1:] |
This file contains hidden or 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
| <svg> | |
| <g id='rect'> | |
| <rect x='50' y='50' width='150' height='100' stroke='black' fill='transparent'/> | |
| <circle cx='50' cy='50' r='5' stroke='black' fill='white'/> | |
| </g> | |
| </svg> |
This file contains hidden or 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
| <svg> | |
| <g id='rect'> | |
| <rect x='50' y='50' width='150' height='100' stroke='black' fill='transparent'/> | |
| <circle cx='50' cy='50' r='5' stroke='black' fill='white'/> | |
| </g> | |
| </svg> |
This file contains hidden or 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
| ul.gallery { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| ul.gallery li { | |
| width: 150px; | |
| height: 150px; | |
| overflow: hidden; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; |
This file contains hidden or 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
| .pesco { | |
| width: 600px; | |
| height: 300px; | |
| box-shadow: 0 0 10px black inset; | |
| } |
NewerOlder