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
// ==UserScript== | |
// @name Hide Blocked add whitespace | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hide Blocked add whitespace on gelbooru.com | |
// @author bakape | |
// @match https://gelbooru.com/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name meguca multi-upload | |
// @downloadURL https://gist.github.com/an-electric-sheep/ce0cd642b2bff8508f39931e902588b1/raw/meguca.user.js | |
// @namespace https://github.com/an-electric-sheep | |
// @description drag&drop 2 or more files onto meguca to auto-dump | |
// @include *://meguca.org/* | |
// @version 2.10 | |
// @grant none | |
// @run-at document-start | |
// @noframes |
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
package main | |
// #include "main.h" | |
import "C" | |
func main() { | |
println(C.ERROR_CODE == -1) | |
} |
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 "strconv" %} | |
{% code type searchField struct{ | |
id, name string | |
} %} | |
Common search part of many pages | |
{% func SearchCommon(search SearchForm) %} | |
<select name="c" class="form-control input-sm" value> | |
<option value="_">All categories</option> |
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
package main | |
import ( | |
"image" | |
"os" | |
"github.com/Soreil/imager" | |
) | |
func main() { |
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
new Array(100) | |
.fill(1) | |
.map((num, i) => i+1) | |
.map(num => num % 15 ? num : "FizzBuzz") | |
.map(num => (parseInt(num) && (num % 3 ? num : "Fizz")) || num) | |
.map(num => (parseInt(num) && (num % 5 ? num : "Buzz")) || num) |
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
package main | |
import ( | |
"fmt" | |
r "github.com/dancannon/gorethink" | |
) | |
func main() { | |
session, _ := r.Connect(r.ConnectOpts{Address: "localhost:28015"}) |