Skip to content

Instantly share code, notes, and snippets.

View owner0220's full-sized avatar

Norm owner0220

View GitHub Profile
@owner0220
owner0220 / HDP-2.6.5.0-292.xml
Created April 28, 2021 12:13 — forked from ferdinandosimonetti/HDP-2.6.5.0-292.xml
VDF (version definition file) for a local package repository - Hortonworks HDP 2.6.5 - CentOS7/RHEL7 x64
<?xml version="1.0"?>
<repository-version xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="version_definition.xsd">
<release>
<type>STANDARD</type>
<stack-id>HDP-2.6</stack-id>
<version>2.6.5.0</version>
<build>292</build>
<compatible-with>2\.[3-6]\.\d+\.\d+</compatible-with>
<release-notes>http://example.com</release-notes>
<display>HDP-2.6.5.0</display>
@owner0220
owner0220 / curl.md
Created July 10, 2019 07:04 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@owner0220
owner0220 / 0.3 배열회전
Last active August 29, 2015 14:05
문제로 풀어보는 알고리즘
#include <stdio.h>
void right_rotate(int a[], int s, int l)
{
int i, last;
last=a[l];
for(i=t; i>s; i--)
arr[i] = arr[i-1];
arr[s]=last;
@owner0220
owner0220 / 0.2 두 변수의 값 바꾸기
Created August 27, 2014 17:46
문제로 풀어보는 알고리즘
#include <stdio.h>
//두 변수값을 주소를 받아 변경하기
void swap(int *a, int *b)
{
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
@owner0220
owner0220 / 0.1_최대와 최소
Last active August 29, 2015 14:05
문제로 풀어보는 알고리즘
#include <stdio.h>
//최대
int max(int x, int y)
{
if(x>y)
return x;
return y;
}