This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Map; | |
import java.util.HashMap; | |
public class Demo { | |
public static void main(String[] args) { | |
String years[] = { | |
"2009-11", "2009-01", | |
"2010-01", "2010-12", | |
"2010-01", "2010-04", | |
"2010-01", "2010-12", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
o | |
oo | |
ooo | |
oooo | |
ooooo | |
o | |
oo | |
ooo | |
oooo | |
ooooo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#define bold "\e[1;30m" | |
#define red "\e[0;31m" | |
#define green "\e[0;32m" | |
#define cyan "\e[0;36m" | |
#define reset "\e[0m" | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project : VST SDK | |
// Version : 3.6.0 | |
// | |
// Category : Examples | |
// Filename : public.sdk/samples/vst/pitchnames/source/pitchnames.h | |
// Created by : Steinberg, 12/2010 | |
/* ============ */ | |
/* === 中略 === */ | |
/* ============ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-->sqrt(2) | |
ans = 1.4142136 | |
-->sqrt([1,2,3,4,5]) | |
ans = 1. 1.4142136 1.7320508 2. 2.236068 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import javax.swing.*; | |
import java.io.File; | |
class NativeFileDialog { | |
public static void print(String s){ | |
System.out.print(s); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uniform float millis; | |
uniform float width; | |
uniform float height; | |
void main() | |
{ | |
float rx = gl_FragCoord.x / width; | |
float ry = gl_FragCoord.y / height; | |
float rate = sin(millis)/2.0 + 0.5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vec4 hsv_to_rgb(float h, float s, float v, float a) | |
{ | |
float c = v * s; | |
h = mod((h * 6.0), 6.0); | |
float x = c * (1.0 - abs(mod(h, 2.0) - 1.0)); | |
vec4 color; | |
if (0.0 <= h && h < 1.0) { | |
color = vec4(c, x, 0.0, a); | |
} else if (1.0 <= h && h < 2.0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tcsh -f | |
set gif = $argv[1] | |
set loop = $argv[2] | |
set mp4 = $argv[3] | |
set framerate = $argv[4] | |
if($loop < 1) then | |
echo "loop must >0" | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEBUG | |
typedef int VALUE; | |
typedef struct linkedList { | |
VALUE head; |
OlderNewer