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
class String | |
require 'rexml/parsers/pullparser' | |
def truncate_html(len = 30) | |
p = REXML::Parsers::PullParser.new(self) | |
tags = [] | |
new_len = len | |
results = '' | |
while p.has_next? && new_len > 0 |
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/ruby | |
require 'rubygems' | |
require 'net/http' | |
require 'rio' | |
body = Net::HTTP.get 'minneapolisfuckingrocks.blogspot.com', '/2009/01/diplo-remix-collection.html' | |
body.scan(/http:\/\/[a-zA-Z0-9_\.\/]*mp3{1}/).each {|link| rio(link) > rio(File.basename(link))} |
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
require 'rubygems' | |
require 'sinatra' | |
require 'dm-core' | |
require 'dm-validations' | |
require 'dm-timestamps' | |
DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/messages.sqlite3") | |
class Message | |
include DataMapper::Resource |
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
mu:inception tom$ make | |
gcc -g -Wall -m32 -c -o inception.o inception.c | |
gcc -g -Wall -m32 -g -o inception inception.o -lpthread | |
mu:inception tom$ ./inception | |
Dreamer [Fischer], level [1], priority [19], policy [OTHER] | |
Dreamer [Cobb], level [1], priority [19], policy [OTHER] | |
Dreamer [Ariadne], level [1], priority [19], policy [OTHER] | |
Dreamer [Arthur], level [1], priority [19], policy [OTHER] | |
Dreamer [Eames], level [1], priority [19], policy [OTHER] | |
Dreamer [Saito], level [1], priority [19], policy [OTHER] |
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
{ | |
"name": "ReactiveCocoa", | |
"version": "3.0-RC.1", | |
"summary": "A framework for composing and transforming streams of values", | |
"description": "ReactiveCocoa (RAC) is an Objective-C framework for Functional Reactive Programming. It provides APIs for composing and transforming streams of values.\n", | |
"homepage": "https://github.com/ReactiveCocoa/ReactiveCocoa", | |
"license": "MIT", | |
"authors": { | |
"Josh Abernathy": "josh@github.com" | |
}, |
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
%% @author Northscale <info@northscale.com> | |
%% @copyright 2010 NorthScale, Inc. | |
%% | |
%% Licensed under the Apache License, Version 2.0 (the "License"); | |
%% you may not use this file except in compliance with the License. | |
%% You may obtain a copy of the License at | |
%% | |
%% http://www.apache.org/licenses/LICENSE-2.0 | |
%% | |
%% Unless required by applicable law or agreed to in writing, software |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions name="Service" | |
targetNamespace="http://localhost:80/Service.wsdl" | |
xmlns:tns="http://localhost:80/Service.wsdl" | |
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:IDSP="http://ns.adobe.com/InDesign/soap/" | |
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" |
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
rm -r ~/Library/Application Support/Satellite Eyes | |
rm ~/Library/Preferences/uk.co.tomtaylor.SatelliteEyes.plist |
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
#0 0x0000000100128288 in mbgl::Painter::render(mbgl::Style const&, mbgl::TransformState, mbgl::FrameData const&) () | |
#1 0x000000010010ac2c in mbgl::MapContext::renderSync(mbgl::TransformState const&, mbgl::FrameData const&) () | |
#2 0x00000001001063b0 in std::__1::packaged_task<bool ()>::operator()() () | |
#3 0x0000000100106304 in mbgl::util::RunLoop::Invoker<std::__1::packaged_task<bool ()>, std::__1::tuple<> >::operator()() () | |
#4 0x000000010017832c in mbgl::util::RunLoop::process() () | |
#5 0x00000001000b4ecc in uv__async_event at /Users/kkaefer/Code/mason/libuv-1.7.5/mason_packages/.build/libuv-1.7.5/src/unix/async.c:92 | |
#6 0x00000001000b508c in uv__async_io at /Users/kkaefer/Code/mason/libuv-1.7.5/mason_packages/.build/libuv-1.7.5/src/unix/async.c:137 | |
#7 0x00000001000b8c54 in uv__io_poll at /Users/kkaefer/Code/mason/libuv-1.7.5/mason_packages/.build/libuv-1.7.5/src/unix/kqueue.c:247 | |
#8 0x00000001000b543c in uv_run at /Users/kkaefer/Code/mason/libuv-1.7.5/mason_packages/.build/libuv-1.7.5/src/unix/core.c:341 | |
#9 0x000 |
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
Getting Crash Logs Directly From a Device Without Xcode | |
Your users can retrieve crash reports from their device and send them to you via email by following these instructions. | |
(It is not possible to get device console logs directly from a device) | |
1) Open Settings app | |
2) Go to Privacy, then Diagnostics & Usage | |
3) Select Diagnostics & Usage Data |