Modern Neovim setup - Catppuccin, nvim-tree, Telescope, toggleterm, and more. (updated)
Clean Neovim config for macOS (nvim 0.11+). Managed by lazy.nvim.
mv ~/.config/nvim ~/.config/nvim.bakA macOS service for those Xcode wizards 🧙 who sometimes just want to take the easy road. Generates a quirky formatted string with your file name and selected code, copies it straight to your clipboard, and magically opens a specified website.✨
ARE YOU LAZY?
FILENAME: {{FILE_NAME_FROM_XCODE}}
| import Foundation | |
| protocol PresenterView: class { | |
| func updateLabel() | |
| } | |
| class Presenter { | |
| weak var view: PresenterView? | |
| // Pass something that conforms to PresenterView | |
| init(with view: PresenterView) { | |
| self.view = view | |
| } |
| const getShowtimes = () => { | |
| const spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| const range = spreadsheet.getSheetByName('ShowTime').getRange('A2:D'); | |
| const values = range.getValues(); | |
| const showtimes = values.filter((val) => val[0]).map(mappingShowTime); | |
| const incoming = showtimes.filter(isIncoming) | |
| const showing = showtimes.filter(isShowing) | |
| const alreayShown = showtimes.filter(wasAlreadyShown) |
| const axios = require('axios'); | |
| const fetchState = async (projectId) => { | |
| let result = await axios( | |
| `http://167.99.72.166:3800/projects/${projectId}/state`, | |
| ); | |
| return result.data; | |
| }; | |
| const fetchSummary = async (projectId, status) => { |
| const fetchSheet = async (sheetId) => { | |
| try { | |
| var records = [] | |
| const response = await fetch( | |
| `https://spreadsheets.google.com/feeds/list/${sheetId}/od6/public/values?alt=json`, | |
| ); | |
| const responseJson = await response.json(); | |
| const { entry } = responseJson.feed; | |
| records = entry.map(row => ({ | |
| column1: row.gsx$column1.$t, |
| [ | |
| { | |
| "id": "5dc53b5ee7ad9e06d7d73bf7", | |
| "current_pod_id": "5dc53b5e5d65fd00317cb4b7", | |
| "floor": 4, | |
| "deliver_date": "2020-07-14T09:45:31 -07:00", | |
| "status": "COMPLETE" | |
| }, | |
| { | |
| "id": "5dc53b5e48006d959450afd0", |
| const puppeteer = require('puppeteer'); | |
| const track = async (number) => { | |
| //launch headless browser and go to web page | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| const url = 'http://track.thailandpost.co.th/tracking/default.aspx' | |
| await page.goto(url); | |
| //waiting for slider | |
| await page.waitFor('.ui-draggable') |
| <template lang="pug"> | |
| v-container(fluid) | |
| v-row( | |
| align="center" | |
| justify="center" | |
| ) | |
| template(v-for="item in registerTypes") | |
| v-col(cols="12" sm="5" md="4" lg="3" :key="item.headline") | |
| type-card( | |
| :headline="item.headline" |