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
| import Database from "better-sqlite3"; | |
| import { type BetterSQLite3Database, drizzle } from "drizzle-orm/better-sqlite3"; | |
| import { fileURLToPath } from "url"; | |
| import { dirname, join } from "path"; | |
| import { instrumentSqliteDrizzle } from "./drizzleTracing.js"; | |
| import * as schema from "./schema.js"; | |
| const __filename = fileURLToPath(import.meta.url); | |
| const __dirname = dirname(__filename); |
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
| { | |
| "name": "placasbrasil-search", | |
| "version": "1.0.0", | |
| "description": "PlacasBrasil Search", | |
| "main": "search.js", | |
| "scripts": { | |
| "search": "node search.js" | |
| }, | |
| "dependencies": { | |
| "cheerio": "^1.0.0", |
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
| /* global chrome, MediaRecorder, FileReader */ | |
| chrome.runtime.onConnect.addListener(port => { | |
| let recorder = null | |
| port.onMessage.addListener(msg => { | |
| console.log(msg); | |
| switch (msg.type) { | |
| case 'REC_STOP': | |
| console.log('Stopping recording') | |
| if (!port.recorderPlaying || !recorder) { |
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
| # -*- coding: utf-8 -*- | |
| from feedgen.feed import FeedGenerator | |
| from boto.s3.connection import OrdinaryCallingFormat | |
| from boto.s3.key import Key | |
| from boto.cloudfront import CloudFrontConnection | |
| from os import path | |
| import boto | |
| import boto.s3 | |
| import sys |
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
| #!/bin/bash | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| git pull origin $branch |
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 bash | |
| # reset environment variables that could interfere with normal usage | |
| export GREP_OPTIONS= | |
| # put all utility functions here | |
| # make a temporary file | |
| git_extra_mktemp() { | |
| mktemp -t "$(basename "$0")".XXX | |
| } |
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
| git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
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
| package you.pkg.here; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| /* | |
| * Copyright (C) 2018 InEvent, Inc. MIT License | |
| */ | |
| public class FragmentManagerHelper { |
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
| /** | |
| * Driver extracted from http://www.diku.dk/~panic/P-touch/. | |
| * Modified by Mauricio Giordano <giordano@inevent.us> | |
| */ | |
| /** | |
| * rastertoptch is a filter to convert CUPS raster data into a Brother | |
| * P-touch label printer command byte stream. | |
| * | |
| * Copyright (c) 2006 Arne John Glenstrup <panic@itu.dk> |
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
| // We need to use reflection... | |
| // yes, I know, it sucks! | |
| @Override | |
| public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { | |
| super.onCreateOptionsMenu(menu, inflater); | |
| inflater.inflate(R.menu.menu_with_search, menu); | |
| SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); | |
| final EditText editTextView = (EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text); |
NewerOlder