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 {Command} from '@oclif/command' | |
import chalk from 'chalk' | |
export default class Add extends Command { | |
static description = 'Add new todo to list' | |
static args = [{name: 'todo'}] | |
async run() { | |
const {args} = this.parse(Add) |
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 {Command} from '@oclif/command' | |
export default class Add extends Command { | |
static description = 'Add new todo to list' | |
static args = [{name: 'todo'}] | |
async run() { | |
const {args} = this.parse(Add) | |
const todo = args.todo |
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 url('https://fonts.googleapis.com/css?family=Lato'); | |
* { | |
box-sizing: border-box; | |
font-family: 'Lato', sans-serif; | |
} | |
.autocomplete-search-box { | |
width: 50%; | |
margin-left: 25%; |
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
function makeResizableDiv(div) { | |
const element = document.querySelector(div); | |
const resizers = document.querySelectorAll(div + ' .resizer') | |
for (let i = 0;i < resizers.length; i++) { | |
const currentResizer = resizers[i]; | |
currentResizer.addEventListener('mousedown', function(e) { | |
e.preventDefault() | |
window.addEventListener('mousemove', resize) | |
window.addEventListener('mouseup', stopResize) | |
}) |
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
function makeResizableDiv(div) { | |
const element = document.querySelector(div); | |
const resizers = document.querySelectorAll(div + ' .resizer') | |
for (let i = 0;i < resizers.length; i++) { | |
const currentResizer = resizers[i]; | |
currentResizer.addEventListener('mousedown', function(e) { | |
currentResizer.addEventListener('mousemove', resize) | |
}) | |
function resize(e) { |
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
const puppeteer = require('puppeteer'); | |
const firebase = require('firebase'); | |
if(!firebase.apps.length) { | |
let config = { | |
apiKey: "xxxxxxxxxxxxxxxxxxxxx", | |
authDomain: "xxxxxxxxxxxxxxxxxxxxxxxx", | |
databaseURL: "xxxxxxxxxxxxxxxxxxxxx", | |
projectId: "xxxxxxxxx", | |
storageBucket: "xxxxxxxxxxxxxxxxxxxx", |
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
const puppeteer = require('puppeteer'); | |
(async () => { | |
// launch the browser | |
const browser = await puppeteer.launch({ | |
headless: true // headless or non-headless | |
}); | |
// open a new tab | |
const page = await browser.newPage(); |
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
class FrontEndAndCleaningAI extends CleaningAI{ // now this AI can clean code | |
public function createFrontEnd(){ | |
System.out.print("I'm creating front-end...."); | |
} | |
} |
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
class AI{ | |
public function powerUp(){ | |
System.out.print("Fired up and ready to serve"); | |
} | |
} | |
class CleaningAI extends AI{ | |
public function clean(){ | |
System.out.print("Cleaning the code..."); | |
} |
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
class Programmer{ | |
public function drinkCoffee(){ | |
System.out.print("I'm drinking...."); | |
} | |
} | |
class BackEndProgrammer extends Programmer{ | |
public function createBackEnd(){ | |
System.out.print("I'm creating back-end...."); | |
} |