Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
html { | |
font-family: "Menlo"; | |
background-color: #272822; | |
color: white; | |
word-wrap: break-word; | |
margin: 0; | |
padding: 3px 4px 10px 4px; | |
font-size: 12px; | |
} |
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'uri' | |
def compile(library) | |
package, name, version = library.split(':') | |
filepath = package.gsub(/\./, '/') + '/' + name | |
url = "http://search.maven.org/remotecontent?filepath=#{filepath}/maven-metadata.xml" | |
res = Net::HTTP.get URI.parse(url) |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
package com.example.sortable.app; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.view.LayoutInflater; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewGroup; |
#import "NSDate+Justaway.h" | |
@implementation NSDate (Justaway) | |
+ (instancetype)dateWithString:(NSString *)string | |
{ | |
static NSDateFormatter *formatter; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
formatter = NSDateFormatter.new; |
use strict; | |
use warnings; | |
my $homo = q/ | |
_ayQm | |
_swmQQQQQ | |
samQQQ@T\"3QQW | |
jQWT?\"^ jQF]W | |
\"\" <WF ]W | |
_QP ]W |
while [ 1 ] | |
do | |
OK=`curl "https://play.google.com/store/apps/details?id=info.justaway" -sS | grep "> 1.0.xx <"` | |
if [ "$OK" ]; then | |
curl -d 'message=ok' http://xxx.7kai.org/ | |
exit | |
fi | |
sleep 60 | |
done |
ViewPager viewPager = (ViewPager) findViewById(R.id.X); // XMLに書いたViewPager(スワイプ出来る部分)のidを指定する | |
SectionsPagerAdapter pagerAdapter = new SectionsPagerAdapter(this, viewPager); | |
Bundle args = new Bundle(); | |
args.putSerializable("user", user); // Fragmentに渡す引数、とりあえずコメントアウトでよい | |
args.putSerializable("relationship", relationship); // Fragmentに渡す引数、とりあえずコメントアウトでよい | |
pagerAdapter.addTab(SummaryFragment.class, args); // `SummaryFragment.class`の部分をTweetFragment.classとかFollowerFragment.classとかにする、クラスはinfo.justaway.fragment.profileの下に配置する | |
pagerAdapter.addTab(DescriptionFragment.class, args); // 同上 | |
pagerAdapter.notifyDataSetChanged(); // これを呼ぶとaddTabの結果が反映される |