Discover gists
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
# disable sleep | |
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | |
# re-enable sleep | |
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 |
Women in particular need to keep an eye on their physical and mental health, because if we’re scurrying to and from appointments and errands, we don’t have a lot of time to take care of ourselves. We need to do a better job of putting ourselves higher on our own “to do” list. Michelle Obama
A Pen by uixcrazy.com on CodePen.
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 { HttpService, Injectable, Logger } from '@nestjs/common'; | |
import { InjectModel } from '@nestjs/sequelize'; | |
import { ReadStream } from 'fs'; | |
import { Sequelize } from 'sequelize-typescript'; | |
import * as xlsx from 'xlsx'; | |
import { WorkBook, WorkSheet } from 'xlsx'; | |
import { ArquivoImportacao } from './dto/arquivo-importacao.dto'; | |
@Injectable() | |
export class ImportacaoProcessosService { |
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
[ | |
{ | |
"type": "function", | |
"name": "diamondCut", | |
"inputs": [ | |
{ | |
"name": "_diamondCut", | |
"type": "tuple[]", | |
"internalType": "struct IDiamond.FacetCut[]", | |
"components": [ |
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 { createSchema } from "@ponder/core"; | |
export default createSchema((p) => ({ | |
Pet: p.createTable({ | |
id: p.int(), | |
name: p.string().optional(), | |
status: p.int(), | |
score: p.string(), | |
scoreInt: p.bigint(), | |
level: p.int(), |
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
## Pre-requisite: You have to know your last commit message from your deleted branch. | |
git reflog | |
# Search for message in the list | |
# a901eda HEAD@{18}: commit: <last commit message> | |
# Now you have two options, either checkout revision or HEAD | |
git checkout a901eda | |
# Or | |
git checkout HEAD@{18} |
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
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash |
April 20, 2019: GAS library for this situation was published. Please check it at https://github.com/tanaikech/FetchApp.
These sample scripts are for requesting multipart post using Google Apps Script.
In most cases, the multipart request is used for uploading files. So I prepared 2 sample situations as follows. For each situation, the request parameters are different.
- Upload a file from Google Drive to Slack.
- Convert an excel file to Spreadsheet on Google Drive using Drive API v3.
NewerOlder