Skip to content

Instantly share code, notes, and snippets.

View Karasiq's full-sized avatar
🤔
Солнце ещё высоко

Amynov Islam Methyl Ogly Karasiq

🤔
Солнце ещё высоко
View GitHub Profile
@Karasiq
Karasiq / gist:10013027
Created April 7, 2014 00:24
sqlite3.c
This file has been truncated, but you can view the full file.
/******************************************************************************
** This file is an amalgamation of many separate C source files from SQLite
** version 3.8.4.3. By combining all the individual C code files into this
** single large file, the entire code can be compiled as a single translation
** unit. This allows many compilers to do optimizations that would not be
** possible if the files were compiled separately. Performance improvements
** of 5% or more are commonly seen when SQLite is compiled as a single
** translation unit.
**
** This file is all you need to compile SQLite. To use SQLite in other
@Karasiq
Karasiq / gist:10013045
Created April 7, 2014 00:26
uniprogram
# /* [ <!-- */ include <stdio.h> /* \
#{\
`""""true \\#{"\n#"}; \
\
if [ -n "$ZSH_VERSION" ]; then \
\
echo exec echo I\'m a zsh script.; \
\
elif [ -n "$BASH_VERSION" ]; then \
\
#define OCHOBHOE main
#define OT {
#define nO }
#define KPyTu for
#define BOnPOC if
#define BEPHu return
#define OTBET return
#define HE !
#define nE4ATb printf
#define MHOrO int
@Karasiq
Karasiq / gist:10013067
Created April 7, 2014 00:28
Поиск элемента в массиве
import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static void main (String[] args) throws java.lang.Exception
{
int[] massivIntov = {1,2,3};
int elementInt = 2;
import System.Exit
import Graphics.UI.GLUT
import Control.Monad
import Control.Applicative
import Control.Arrow
import Control.Concurrent
import Graphics.Rendering.OpenGL
import Data.IORef
import Data.List
import Data.Maybe
@Karasiq
Karasiq / gist:11184652
Last active August 29, 2015 14:00
Сортировка по-уебански
program lab;
uses
windows, crt;
label showMassive,showCPUtime,ShowSortResult,sortingstats,showmdlngrsltAve,showmdlngrsltFull,search,1,11,111,1111,112,113,12,121,1211,122,123,13,131,132,133,14,666;
import static org.junit.Assert.fail;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Tuple
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/ghc-prim/LICENSE)
--
-- Maintainer : [email protected]
-- Stability : experimental
#include "MyStrategy.h"
#include "mt19937ar.h"
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <queue>
#include <time.h>
public class ArrayUtil {
private static final Object[] EMPTY = new Object[0]
;
public static Object[] createArray() {
return EMPTY;
}
public static Object[] createArray(Object arg0) {
return new Object[]{