Skip to content

Instantly share code, notes, and snippets.

View nazt's full-sized avatar

Nat nazt

  • Chiang Mai Maker Club
  • Chiang Mai
  • X @nazt
View GitHub Profile
@nazt
nazt / gist:147453
Created July 15, 2009 04:53
asg5-1
#include <stdio.h>
int main()
{
int i;
int sum;
sum=0;
for (i=3;i<99;i+=2)
{
printf("%d \n",i);
@nazt
nazt / asg5-d
Created July 15, 2009 04:57
asg5-1
#include <stdio.h>
//d
int main()
{
int x;
int sum;
x=1;
while(x<=20)
{
printf("%d \t",x);
#include <stdio.h>
int main()
{
int i;
int sum;
sum=0;
for (i=3;i<99;i+=2)
{
printf("%d \n",i);
#include <stdio.h>
//e
int main()
{
int x;
for(x=1;x<=20;x++)
{
printf("%d \t",x);
if(x%5==0)
printf("\n");
#include <stdio.h>
#include <math.h>
//c
int main()
{
printf("%10.2f",pow(2.5,3));
return 0;
}
#include <stdio.h>
#include <math.h>
//5-2
int main()
{
int x;
int y;
int i;
int j;
scanf("%d%d",&x,&y);
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i; int j;
char name[16];
int max;
i=1;
while(i<=10)
sql.eachRow("select * from probe_c9488878_1day ") {
if(map."${it.gid}"==null)
{
map."${it.gid}"=[]
}
map."${it.gid}"<< it
}
map.each { k,v-> println k }
map['19981'].each { println it.lat}
<html>
<head>
<title>Google Chart API plugin</title>
<meta name="layout" content="main" />
</head>
<body>
<%
def labels = ['First','Second','Third']
def colors = ['FF0000','00ff00','0000ff']
def values = [35,45,10]
[flickr-gallery mode="photoset" photoset=" 72157622603296345" ]