Skip to content

Instantly share code, notes, and snippets.

View PRIMETIME.c
#include <stdio.h>
#include <math.h>
long isprime(long n);
long n2n41(long n);
int primepct[10001];
int main(int argc, char **argv)
{
long a, b, i, ip;
View DevDating.js
(function() {
var rows = map[0].length;
var cols = map.length;
String.prototype.replaceAt=function(index, character)
{
return this.substr(0, index) + character + this.substr(index+character.length);
}
View PRIMEFACTORS.c
#include <stdio.h>
#include <math.h>
void print_factors(long n);
int main(int argc, char **argv)
{
long n;
while (1)
{
View 3NPLUS1.c
#include <stdio.h>
unsigned long findMaxCycleLength(unsigned long min, unsigned long max);
unsigned long findCycleLength(unsigned long n);
int main(int argc, char** argv)
{
unsigned long min, max, num = 0;
while(scanf("%li %li", &min, &max) != EOF)
View HASHIT.cs
using System;
using System.Text;
namespace HASHIT
{
class MainClass
{
public static void Main (string[] args)
{
int t = Convert.ToInt32 (System.Console.ReadLine ());
View REVERSEDNUMBERS.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void reverse(char str[]);
void add(char num1[], char num2[], char sum[]);
int main(int argc, char** argv)
{
View CalendarHelper.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
namespace AntiYes.Helpers
{
View WSCIPHER.cs
using System;
using System.Collections.Generic;
namespace www.spoj.pl._899_WSCIPHER
{
class Program
{
static void Main(string[] args)
{
while (true)
View p1026.cs
using System;
using System.Collections;
using System.Globalization;
namespace acm.timus.ru_p1026
{
class Program
{
static void Main(string[] args)
{
@johnboker
johnboker / WebService.java
Created Jul 14, 2015
Web Service generic json call with volley and gson.
View WebService.java
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.HashMap;
import java.util.Map;
You can’t perform that action at this time.