Skip to content

Instantly share code, notes, and snippets.

View komkanit's full-sized avatar
🍔
code for food

komkanit komkanit

🍔
code for food
View GitHub Profile
// =========== Edit Student Detail Here ============
// Program: set01.cs
// RankId: 09
// Author: Komkanit Sujautra
// Id: 5810500412
// Group: 1/11
// Date: 17/9/2015
//===================================================
using System;
class set{
// =========== Edit Student Detail Here ============
// Program: countWords.cs
// RankId: 09
// Author: Komkanit Sujautra
// Id: 5810500412
// Group: 1/11
// Date: 17/9/2015
//===================================================
using System;
using System.IO;
// =========== Edit Student Detail Here ============
// Program: countKeyWords.cs
// RankId: 09
// Author: Komkanit Sujautra
// Id: 5810500412
// Group: 1/11
// Date: 17/9/2015
//===================================================
using System;
using System.IO;
@komkanit
komkanit / auto_click_ku.js
Last active December 3, 2015 18:04
auto click web eassess.ku
var n = 13;
for(var i=1 ; i<=n ; i++){
var id = "#choice"+i+"-5";
$(id).click(true);
}
var x = document.getElementsByName("OK");
x[0].click(true);
using System;
class Matrix
{
static string [,] map = new string[100,100];
static int n,m,lenp = 0;
static int[] px = new int[100];
static int[] py = new int[100];
public static void Main()
{
Console.Write("Input size y: ");
@komkanit
komkanit / combination.cs
Last active December 9, 2015 04:36
nCr in C#
using System;
class combi
{
static int[] arr;
public static void Main()
{
arr = new int[] {1,2,3,4,5};
Cal(3,0,new int[3]);
}
static void Cal(int len,int start,int[] result)
using System;
class Gauss
{
static double[,] matrix = new double[10,10];
static int n;
public static void Main()
{
n = int.Parse(Console.ReadLine());
double[] ans = new double[n];
Input();
using System;
class Gauss
{
static double[,] matrix = {{1.334E-4, 4.123E+1, 7.912E+2, -1.544E+3, -711.5698662},
{1.777, 2.367E-5, 2.07E+1, -9.035E+1, -67.87297633},
{9.188, 0, -1.015E+1, 1.988E-4, -0.9618012},
{1.002E+2, 1.442E+4, -7.014E+2, 5.321, 13824.121}};
static double[,] matrix2 = {{1.334E-4, 4.123E+1, 7.912E+2, -1.544E+3, -711.5698662},
{1.777, 2.367E-5, 2.07E+1, -9.035E+1, -67.87297633},
{9.188, 0, -1.015E+1, 1.988E-4, -0.9618012},
@komkanit
komkanit / qizzfbhack.js
Last active May 2, 2016 12:16
hack how you know your friend
//version1 show process
var i=0;
setInterval(function(){
var ansBox = $('.my_answers_block')[i]
var len = $(ansBox).children().length
for(var j = 0 ; j < len ; j++){
var b = $(ansBox).children()[j];
var str = b.getAttribute('onclick')
var arr = str.replace('(',' ').replace(')',' ').replace(',',' ').split(/,| /)
var r = arr[3]
var ans = [
'(23)',
'(24)',
'(3)',
'(35)',
'(36)',
'(48)',
'(6)',
'(68)',
'(69)',