Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<?php echo content_url(); ?>/fontawesome/css/all.css" rel="stylesheet"> <!--load all styles -->
<title>FontAwesomeを表示してみる</title>
<style>
/* iタグで表示用 */
@kdice-k
kdice-k / functions.php
Last active March 15, 2022 10:12
WordPress テーマ自作 メニュー機能を有効にする
<?php
function custom_theme_setup() {
add_theme_support( 'menus' );
}
add_action( 'after_setup_theme', 'custom_theme_setup' );
#include "sqlite3.h"
#include <iostream>
#include <memory>
#include <string>
struct SQLiteError {
int errcode;
std::string errmsg;
std::string sqlite3_errmsg;
@kdice-k
kdice-k / gamemain.cpp
Last active September 26, 2018 05:24
SDL2 アニメーションサンプル
#include "gamemain.hpp"
#include <iostream>
GAME::GAME() {
init();
}
GAME::~GAME() {
cleanup();
}
@kdice-k
kdice-k / time_measurement.cpp
Last active October 3, 2017 02:48
時間計測サンプル
/**
* 時間計測サンプル
* cl /EHsc timer_chrono.cpp
*/
#include <chrono>
#include <thread>
#include <iostream>
using namespace std::chrono;
using namespace std::this_thread;
#include <SDL.h>
int main(int argc, char** argv) {
// 初期化
if (SDL_Init(SDL_INIT_VIDEO) != NULL) {
// error
SDL_Quit();
return 1;
}
@kdice-k
kdice-k / HelloWorld.cpp
Last active September 23, 2017 23:09
Hello ! こんちは!
#include <iostream>
auto main() -> int {
std::cout << "Hello World !" << std::endl;
return 0;
}