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
function get_data() { | |
source = document.getElementById("form-body").innerHTML.split("\n"); | |
for(i in source) { | |
// データは改行を含まないとする | |
if(~source[i].indexOf("{")){ | |
return JSON.parse(source[i]); | |
} | |
} | |
} |
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
#include <stdio.h> | |
#include <signal.h> | |
#include <sched.h> | |
int go_printf = 0; | |
void handler(int signum, siginfo_t* si_val, void* ctx) { | |
go_printf = 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
# perf script event handlers, generated by perf script -g python | |
# Licensed under the terms of the GNU GPL License version 2 | |
# The common_* event handler fields are the most useful fields common to | |
# all events. They don't necessarily correspond to the 'common_*' fields | |
# in the format files. Those fields not available as handler params can | |
# be retrieved using Python functions of the form common_*(context). | |
# See the perf-trace-python Documentation for the list of available functions. | |
import os |
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
SRCDIR = $(realpath .) | |
INCDIR = $(SRCDIR) | |
OBJDIR = $(SRCDIR) | |
IGNORE = $(SRCDIR)/ignore_file.c | |
SRCS = $(filter-out $(IGNORE),$(wildcard $(SRCDIR)/*.c)) | |
OBJS = $(subst $(SRCDIR),$(OBJDIR),$(SRCS:.c=.o)) | |
EXE = a.out | |
CC = gcc | |
MAKE = make |
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
#!/usr/bin/stap -gv | |
probe begin { | |
printf("force stop warning short TX\n") | |
} | |
probe end { | |
printf("stop probe\n") | |
} |
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" | |
"github.com/nsf/termbox-go" | |
"time" | |
) | |
func drawLine(x, y int, str string) { | |
color := termbox.ColorDefault |
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 httplib2 | |
import os | |
from apiclient import discovery | |
from oauth2client import client | |
from oauth2client import tools | |
from oauth2client.file import Storage | |
SCOPES = 'https://www.googleapis.com/auth/spreadsheets' | |
CLIENT_SECRET_FILE = '' |
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
#!/usr/bin/env python [31/1804] | |
#fileencoding: utf-8 | |
from __future__ import print_function | |
import sys | |
MASK_32BIT = 0xFFFFFFFF | |
class BranchEntry: | |
def __init__(self, line): |
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
{ | |
"CONSUMER_KEY" : "ここにConsumer Keyを入れる", | |
"CONSUMER_SECRET" : "ここにConsumer Secretを入れる", | |
"ACCESS_TOKEN" : "まだ空欄でよい", | |
"ACCESS_TOKEN_SECRET" : "まだ空欄でよい" | |
} |
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
{ | |
"CONSUMER_KEY" : "ここにConsumer Keyを入れる", | |
"CONSUMER_SECRET" : "ここにConsumer Secretを入れる", | |
"ACCESS_TOKEN" : "さっきのoauth_token", | |
"ACCESS_TOKEN_SECRET" : "さっきのoauth_verifier" | |
} |
OlderNewer