text
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 main | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "os" | |
| "path/filepath" | |
| ) | |
| func main() { |
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 { NextApiRequest, NextApiResponse } from 'next'; | |
| import Busboy from 'busboy'; | |
| import { inspect } from 'util'; | |
| export const config = { | |
| api: { | |
| bodyParser: false, | |
| }, | |
| }; |
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
| function download(url, filename){ | |
| var xhr = new XMLHttpRequest(), | |
| a = document.createElement('a'), file; | |
| xhr.open('GET', url, true); | |
| xhr.responseType = 'blob'; | |
| xhr.onload = function () { | |
| file = new Blob([this.response], { type : 'application/octet-stream' }); | |
| a.href = window.URL.createObjectURL(file); | |
| a.download = 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
| var result = {}; Object.keys(Object.keys(document.querySelectorAll(".project-column")[Object.keys(document.querySelectorAll(".project-column")).filter(key => document.querySelectorAll(".project-column")[key].getElementsByTagName("h4")[0].querySelector(".js-project-column-name").innerText === "Done")].children).map(i => document.querySelectorAll(".project-column")[Object.keys(document.querySelectorAll(".project-column")).filter(key => document.querySelectorAll(".project-column")[key].getElementsByTagName("h4")[0].querySelector(".js-project-column-name").innerText === "Done")].children[i]).filter(i => i.classList.contains("js-project-column-cards"))[0].children).map(i => Object.keys(document.querySelectorAll(".project-column")[Object.keys(document.querySelectorAll(".project-column")).filter(key => document.querySelectorAll(".project-column")[key].getElementsByTagName("h4")[0].querySelector(".js-project-column-name").innerText === "Done")].children).map(i => document.querySelectorAll(".project-column")[Object.ke |
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
| r := gin.Default() | |
| r.Use(cros) | |
| func cros(c *gin.Context) { | |
| headers := c.Request.Header.Get("Access-Control-Request-Headers") | |
| c.Header("Access-Control-Allow-Origin", "*") | |
| c.Header("Access-Control-Allow-Methods", "GET,POST,PUT,HEAD,PATCH,DELETE,OPTIONS") | |
| c.Header("Access-Control-Allow-Headers", headers) | |
| if c.Request.Method == "OPTIONS" { | |
| c.Status(200) |
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 main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| type CreateParams struct { |
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
| var like_button = document.querySelector(".recsGamepad__button--like "); | |
| function like() { | |
| like_button.click() | |
| setTimeout(like, 1000) | |
| } | |
| like() |