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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="description" content="A private, dependency-free QR code generator that runs entirely in your browser."> | |
| <title>Offline QR Code Generator</title> | |
| <style> | |
| :root { | |
| color-scheme: light; |
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 engine(name, link,img) { | |
| this.link = link; | |
| this.img = img; | |
| this.name = name; | |
| } | |
| var form = document.forms.namedItem("gs"); | |
| var input = form.elements.namedItem("q"); | |
| var eq = encodeURI(input.value); |
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 perl | |
| use strict; | |
| use warnings; | |
| use GD; | |
| sub draw_page { | |
| my ($width, $height) = @_; | |
| return unless $width && $height; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Mackerel Graph Builder</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| function update() { | |
| var d = $("#def")[0].value; | |
| var o = $("#org")[0].value; |
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 ruby | |
| require "mackerel" | |
| require "net/http" | |
| require "uri" | |
| require "pp" | |
| require "date" | |
| @mackerel_api_key = "<APIKEY>" | |
| service = "<SERVICE>" |
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 -*- | |
| import requests | |
| import time | |
| import json | |
| from StringIO import StringIO | |
| import re | |
| import sys | |
| import os |
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 -*- | |
| import requests | |
| import time | |
| import json | |
| from StringIO import StringIO | |
| import re | |
| import sys | |
| import os |
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
| --- elscreen.el.original 2013-03-21 12:58:17.000000000 +0900 | |
| +++ elscreen.el 2013-03-21 12:59:05.000000000 +0900 | |
| @@ -984,7 +984,7 @@ | |
| (defun elscreen-jump () | |
| "Switch to specified screen." | |
| (interactive) | |
| - (let ((next-screen (string-to-number (string last-command-char)))) | |
| + (let ((next-screen (string-to-number (string last-command-event)))) | |
| (if (and (<= 0 next-screen) (<= next-screen 9)) | |
| (elscreen-goto next-screen)))) |
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
| require 'moped' | |
| session = Moped::Session.new([ "127.0.0.1:27017" ]) | |
| session.use "test" | |
| str = '' | |
| 1_000_000.times do | |
| str << '0123456789' | |
| end |
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 ruby | |
| require 'optparse' | |
| require 'json' | |
| options = {} | |
| OptionParser.new do |opts| | |
| opts.banner = "Usage: ltsv2json.rb [options]" | |
| opts.on("-f", "--format FORMAT", "Select format.") do |v| |
NewerOlder