View anasayfam.xhtml
1 2 3 4 5 6 7 8 9 10
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
<h:form>
View tweet api - 3220 tweet
1 2 3 4 5 6 7 8 9 10
<?php
include_once('twitteroauth/twitteroauth.php');
$connection = new TwitterOAuth('UVQqJNvAQcPeYFHlK9ZaQ', 'BFbqNPAVSjWxV5MXp3qMDbOO6EC6wGpbZaDr6LazVM', '364083466-pzcGEPvR1uFAODYVOh7KcpEL1AWGhB3G109YISDX', 'py3brnYgb7u7QbHVXEy8lyw60Fbzy9gjzZHiVIRiDKMfc');
$content = $connection->get('https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=@infopinang&count=200&include_rts=1');
$i=1;
// get first batch of tweets from api
$j = 0;
 
foreach ($content as $tweet) {
echo '<tr><td>'.$j.'</td><td>'.$tweet->text. '<td/></tr>';
View SassMeister-input-HTML.html
1 2 3 4 5 6 7 8 9 10
<div class="l-page">
<div class="l-content">
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
<div class="content-inner"></div>
View rename-screenshots.py
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python3
 
import os
import os.path
 
dir = "/home/sebastian/Bilder"
 
dir_content = os.listdir(dir)
 
for file in dir_content:
View XF_MapPage.cs
1 2 3 4 5 6 7 8 9 10
using System;
 
using Xamarin.Forms;
 
using Xamarin.Forms.Maps;
 
namespace MapSample
{
public class MapPage : ContentPage
{
View gist:37206f506255554ff629
1 2 3 4 5 6 7 8 9 10
class PrimeThread extends Thread {
long minPrime;
PrimeThread(long minPrime) {
this.minPrime = minPrime;
}
 
public void run() {
// compute primes larger than minPrime
}
}
View gist:b328eae8b7d1fc7951fc
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/python3
 
f = open('db.sql', 'r')
out = open('db.out', 'w')
for line in f:
linesp=line.strip().split(" ")
code=''
code +="$this->insert('{{%languages}}', [\n"
code += "'id' => "+ linesp[0]+",\n"
code += "'name' => '" + linesp[1] + "',\n"
View Fixing space issues on ubuntu
1 2 3 4 5 6 7 8 9 10
# get version of current kernel
uname -r
 
# get a list of the stored kernels
dpkg --list | grep linux-image
 
# remove an old kernel
sudo apt-get purge linux-image-x.x.x.x-generic
 
# update grub
View installUpdateXcodePlugins
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
########### 要安装的URL列表############
plugins=( 'https://github.com/onevcat/VVDocumenter-Xcode' \
'https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin' \
'https://github.com/markohlebar/Peckham' \
'https://github.com/robbiehanson/XcodeColors' \
'https://github.com/trawor/XToDo' \
'https://github.com/fortinmike/XcodeBoost' \
'https://github.com/omz/ColorSense-for-Xcode' )
View gist:757d30953fa738b1fbb5
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Document</title>
</head>
<body>
</body>
</html>
Something went wrong with that request. Please try again.