Skip to content

Instantly share code, notes, and snippets.

View daramkun's full-sized avatar
🐿️

진재연(Jin Jae-yeon) daramkun

🐿️
View GitHub Profile
namespace ConsoleApplication2
{
class Program
{
static void Main ( string [] args )
{
using ( SharpDX.XAudio2.XAudio2 xaudio2 = new SharpDX.XAudio2.XAudio2 () )
{
using ( System.IO.Stream fileStream = new System.IO.FileStream ( "Test.mp3", System.IO.FileMode.Open ) )
{
#include <Windows.h>
//////////////////////////////////////////////////////////////////
// TODO: Global Variables for Direct3D
bool InitializeDirect3D ( HWND hWnd )
{
// TODO: Initializing Direct3D
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <cstdio>
#include <cmath>
float x = 0, y = 0;
int targetX = 0, targetY = 0;
float angle;
HBITMAP myBitmap;
#include <Windows.h>
int x = 0, y = 0;
LRESULT CALLBACK WndProc ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
{
switch ( uMsg )
{
case WM_PAINT:
{
ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
@daramkun
daramkun / gethostbyname_example.c
Last active August 29, 2015 14:01
gethostbyname example in Winsock
#include <winsock.h>
#include <Windows.h>
#include <stdio.h>
#pragma comment (lib, "ws2_32.lib")
int main(void)
{
WSADATA wsaData = { 0, };
struct in_addr addr = { 0, };
using System;
using System.IO;
using System.Text;
namespace OpenCLTest
{
class Program
{
static void Main ( string [] args )
{
#include <stdio.h>
#include <Windows.h>
int main(void)
{
bool start = false;
int c = 0;
char str[32] = {0, };
bool exit = true;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading;
using System.Windows.Forms;
namespace DdnsUpdater
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;