James Sugrue [asked][1], "@GitHubAPI is there a way to find the number of stars for a given repository?"
$ curl -ni "https://api.github.com/search/repositories?q=more+useful+keyboard" -H 'Accept: application/vnd.github.preview'
{
/** | |
* World's simplest express server | |
* - used to serve index.html from /public | |
*/ | |
var express = require('express'); | |
var serveStatic = require('serve-static'); | |
var app = express(); | |
app.use(serveStatic(__dirname + '/public')); |
import { graphql, GraphQLString, GraphQLInt } from 'graphql'; | |
import { objectType, enumType, schemaFrom, listOf } from 'graphql-schema'; | |
import request from 'promisingagent'; | |
const repositorySortEnum = enumType('RepositorySort') | |
.value('CREATED', 'created') | |
.value('UPDATED', 'updated') | |
.value('PUSHED', 'pushed') | |
.value('FULL_NAME', 'full_name') | |
.end(); |
/**ALLOW HIDDEN FOLDER**/ | |
defaults write com.apple.finder AppleShowAllFiles YES | |
sudo killall Finder | |
/**APACHE**/ | |
sudo apachectl start | |
sudo apachectl stop | |
sudo apachectl restart |
editor | |
foreground: cccccc | |
background: 2d2d2d | |
caret: cc99cc | |
editor-selection | |
foreground: ffffff | |
background: 515151 | |
H1 |
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 | |
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf | |
// In case you got the issue | |
// wkhtmltopdf: error while loading shared libraries: | |
// libfontconfig.so.1: cannot open shared object file: No such file or directory | |
// | |
// run the command below: | |
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1 |
# Example controller | |
class IncomesController < ApplicationController | |
# Include the print | |
include Controllers::Print | |
# GET /incomes/1 | |
def show | |
@income = present Income.find(params[:id]) | |
respond_to do |format| |
# crawler.py | |
# Python 2.7.6 | |
""" | |
Crawl a page and extract all urls recursively within same domain | |
""" | |
from BeautifulSoup import BeautifulSoup |
''' scrapes a website for urls ''' | |
import requests | |
from bs4 import BeautifulSoup | |
class URLTest(): | |
def __init__(self, link, status_code, current_depth, head): | |
self.link = link | |
self.status_code = status_code |
Chrome ExtensionのLive HTTP Headersを調査した。Firefox用のものではない。Firefox用のものではない。
11/7追記
Summary in english.