This will demonstrate how to upload build files from Travis CI to S3.
NOTE: Keys have been changed to protect the innocent.
Create an S3 ACL policy, see s3_policy.json for an example.
javascript:(function(){ | |
var s = document.createElement("script"); | |
s.setAttribute("src", "http://code.jquery.com/jquery.js"); | |
document.body.appendChild(s); | |
s.addEventListener("load", function() { | |
var $ = jQuery; | |
var max = 0; | |
var table = "table tr:eq(3) table:eq(1) "; | |
$(table).width("100%"); | |
$(table + "tr td:eq(0)").width("15px"); |
// ==UserScript== | |
// @name Show Full Domain on Hacker News posts | |
// @description Sets full domain on hacker news posts. | |
// @namespace http://userscripts.org/users/119115 | |
// @include http://news.ycombinator.com/* | |
// @include https://news.ycombinator.com/* | |
// @match https://news.ycombinator.com/* | |
// @match http://news.ycombinator.com/* | |
// ==/UserScript== |
diff --git a/iPhoneTrackingAppDelegate.m b/iPhoneTrackingAppDelegate.m | |
index 1d22ecb..4af2bcf 100644 | |
--- a/iPhoneTrackingAppDelegate.m | |
+++ b/iPhoneTrackingAppDelegate.m | |
@@ -146,7 +146,7 @@ | |
return NO; | |
} | |
- const float precision = 100; | |
+ const float precision = 10000; |
require 'nokogiri' | |
require 'httparty' | |
puts "Scraping ids of detainees in custody" | |
ids = [] | |
(1..10).each do |n| | |
response = HTTParty.get "http://projects.nytimes.com/guantanamo/detainees/held?page=#{n}" | |
page = Nokogiri::HTML(response) | |
ids += page.css('#detaineesTable a').map { |link| $1 if /detainees\/(\d+)/ =~ link['href'] }.compact | |
end |
// iOS Media Queries | |
// Goal: capture styles for iPhone, iPhone 3G, iPhone 3GS, iPhone 4, iPhone 4S, iPad, and iPad 2 | |
// | |
// Author: Tony Schneider (@tonywok) | |
// Please tell me where I fail. :) | |
// iPhone v(4,4S) portrait | |
// test: black text (overwritten by v* portrait) with blue background | |
@media all and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) { | |
a { |
#!/bin/bash | |
# Fetches data from http://projects.fivethirtyeight.com/2016-election-forecast/summary.json, | |
# parses the results using python, and prints the polls-only forecast results in the format: | |
# "{STATE} D {PROBABILITY} R {PROBABILITY}" | |
# | |
# The script takes an optional argument that specifies an individual two letter abbreviation (case insensitive) | |
# of a U.S. state. By default, the state is US which returns the national results. | |
# | |
# Examples: |
This will demonstrate how to upload build files from Travis CI to S3.
NOTE: Keys have been changed to protect the innocent.
Create an S3 ACL policy, see s3_policy.json for an example.
// ==UserScript== | |
// @name BetteridgeLinks | |
// @description Lowlight headlines on Hacker News that conform to Betteridge's Law | |
// @version 0.3 | |
// @match http://news.ycombinator.com/* | |
// @author noibl <pjpee6w5pc@snkmail.com> | |
// ==/UserScript== | |
var questions = ['Is', 'Are', 'Does', 'Do', 'Has', 'Have', 'Did', 'Will', 'Can', 'Could', 'Should']; | |
var selector = '.title a'; |
I took some time this weekend to analyze Mastodon's frontend performance. I didn't manage to write many fixes (just a config fix and better caching for static assets) so this was mostly just investigation.
The point of this document is to lay out some of my initial thoughts, since it may be helpful for others. There's a lot of technical jargon, so you may want to get some background by looking at my blog post on "The cost of small modules" and my talk on "Solving the web performance crisis" (slides).
Apparently the porn industry is going after github pages (by sending DMCA to google), you can read the story here (found there).
Using https://www.chillingeffects.org/notices/search?page=1&sort_by=&term=github.com (https://github.com/berkmancenter/chillingeffects/blob/master/doc/api_documentation.mkd#example-successful-response-2) (and an horribly quick and dirty script), here is the list all the concerned users and repositories page (you can find the data bellow):