Skip to content

Instantly share code, notes, and snippets.

<ul>
<?php
$args = array( 'numberposts' => -1, 'cat'= 39; );
$posts = get_posts($args); global $post;?>
<?php foreach($posts as $post): ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
test first commmit
IDで表示する場合
[gist id=4450617]
URLで表示する場合
[gist]http://gist.github.com/4450617[/gist]
@tsu-nera
tsu-nera / quicktweet.cpp
Last active December 10, 2015 17:18
ツイッターつぶやき用クライアント
#include <cstdio>
#include <iostream>
#include <fstream>
#include "includes/twitcurl.h"
int main( int argc, char* argv[] )
{
std::string userName( "username" ); //ユーザ名
std::string passWord( "password" ); //パスワード
@tsu-nera
tsu-nera / quicktweet.vbs
Last active May 14, 2020 19:18
ツイッターつぶやき用VBS
Option Explicit
Dim tweetMessage 'つぶやき
Dim tweetCommmand 'Tweet用コマンド
tweetMessage = InputBox("Let's Tweet!!")
tweetCommmand = "C:\cygwin\home\TSUNEMICHI\src\quicktweet\quicktweet.exe " + "'" + tweetMessage +"'"
Dim Shell
Set Shell = CreateObject("WScript.Shell")
@tsu-nera
tsu-nera / quicktweet2.vbs
Created January 6, 2013 11:51
tweetConsoleを使ってホットキーツイートするスクリプト
Option Explicit
Dim tweetMessage 'つぶやき
Dim tweetCommmand 'Tweet用コマンド
tweetMessage = InputBox("Let's Tweet!!")
tweetCommmand = "C:\temp\TweetConsole\twtcnsl.exe /t " +"'" + tweetMessage +"'"
Dim Shell
Set Shell = CreateObject("WScript.Shell")
/*
* TopCoder
* SRM494 Div2 Level1
*/
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
@tsu-nera
tsu-nera / PenguinTiles.cpp
Last active December 11, 2015 00:58
TopCoder SRM 566 (div1) 250
/*
* TopCoder
* SRM566 Level1
*
* Author : tsu_nera
* Created : 2013/01/13
*/
#include <algorithm>
#include <iostream>
@tsu-nera
tsu-nera / gist:4944781
Last active December 13, 2015 16:59
TopCoder SRM570 Dev2 Level1
/* TopCoder
* SRM : 570
* Division : 1
* Level : 2
*
* Created on: 2013/02/13
* Author: tsu_nera<fox10225fox@gmail.com>
*/
#include <algorithm>
@tsu-nera
tsu-nera / TheExperimentDiv2.cpp
Created April 12, 2013 03:21
SRM 576, Division 2 Level1
#include <vector>
using namespace std;
class TheExperimentDiv2 {
public: vector<int> determineHumidity(vector<int> intensity, int L, vector<int> leftEnd) {
int N = (int)intensity.size();
int M = (int)leftEnd.size();