This Gist wa
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 faker from "https://cdn.jsdelivr.net/npm/@faker-js/[email protected]/dist/faker.min.js"; ///**import and configure faker** | |
faker.locales[faker.locale].name.male_prefix = ["Mr.", "Dr."]; | |
faker.locales[faker.locale].name.female_prefix = ["Mrs.", "Miss.", "Dr."]; | |
window.faker = faker; |
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 sublime | |
import sublime_plugin | |
STANDARD_SETTINGS_FILE = "StandardFormat.sublime-settings" | |
SEMI_STANDARD_SETTINGS_FILE = "SemiStandardFormat.sublime-settings" | |
def plugin_loaded(): | |
global standardSettings | |
global semiStandardSettings | |
standardSettings = sublime.load_settings(STANDARD_SETTINGS_FILE) |
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 fiona from 'fiona' | |
import './lorem' | |
import './nino' | |
const seeded = fiona() | |
seeded.lorem() | |
seeded.sentence() |
This Gist was automatically created by Carbide, a free online programming environment.
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
// slight discrepency with... | |
// var str = "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestias veritatis, quis sunt cumque quod, dolorum! Itaque, inventore, sed. Nisi natus illum minima architecto, reprehenderit fugiat repellendus doloremque dolore adipisci aspernatur? suscipit, esse delectus tempora dolor aliquam excepturi, tempore non mollitia eum dolorem quidem eius quasi est, explicabo eos doloremque. Impedit! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo, dolores, perferendis. At perferendis porro quidem in praesentium quia fuga nihil fugiat ratione. Provident, minima labore blanditiis mollitia sit voluptatibus quod."; | |
// wordwrap(str, 60, '\n', 2); | |
// but pretty close to functionally equavalent. | |
function wordwrap(str, intWidth, strBreak, cut) { | |
intWidth = typeof intWidth !== 'undefined' ? intWidth : 75; | |
strBreak = typeof strBreak !== 'undefined' ? strBreak : '\n'; | |
cut = typeof cut !== 'undefined' ? cut : 0; |
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
there were 0.6299692264292389 green bottles..! |
NewerOlder