Skip to content

Instantly share code, notes, and snippets.

.colHover {background-color: rgb(223, 223, 223);}
.cellHover {
box-shadow: 10px 0px 10px -10px rgba(0, 0, 0, 0.5) inset,
-10px 0px 10px -10px rgba(0, 0, 0, 0.5) inset;
}
.cellHover:first-child {box-shadow: -10px 0px 10px -10px rgba(0, 0, 0, 0.5) inset;}
.cellHover:last-child {box-shadow: 10px 0px 10px -10px rgba(0, 0, 0, 0.5) inset;}
th:hover {
cursor: pointer;
@morganwilde
morganwilde / temp.html
Last active December 15, 2015 09:09
temp
<thead>
<tr>
{% for column in temvar['table']['columns'] %}
{% set thClass = '' %}
{% if column[2] == 'int4' and column[0] != temvar['table']['primary'] %}
{% set thClass = 'aright' %}
{% elif column[0] == temvar['table']['primary'] %}
{% set thClass = 'colPrimary' %}
{% else %}
{% set thClass = 'aleft' %}
@morganwilde
morganwilde / gist:5574439
Created May 14, 2013 08:12
CATransform3D matrix with values explained
CATransform3D transformation = CATransform3DIdentity;
// x line
transformation.m11 = 1; // 20% less wide wall
transformation.m12 = 0; //-1 / 10.0; // skews left up, right down if >0
transformation.m13 = 0; // extends sideways for a short time
transformation.m14 = 0;// // 1 / 5000 = left side towards viewer, right side away from viewer
// y line
transformation.m21 = 0; //-1 / 2.0; // skews bottom left, top right if <0
transformation.m22 = 1; // .8 - 20% less tall
transformation.m23 = 0; // extends upward for a short time
@morganwilde
morganwilde / info
Last active December 23, 2015 10:29
program gyvatė;
var
taskas, tarpp, liko, ilgis, tarpo, laik, tn : integer;
begin
tn := 1;
while tn = 1 do
begin
Randomize;
import datetime, time
start = time.time()
count = 0
for i in range(100):
for j in range(100):
for k in range(100):
#print i*j*k
print str(count) + " - " + str(i*j*k)
#include <stdio.h>
#include <time.h>
int main() {
// time it
clock_t cstart = clock();
clock_t cend = 0;
int i, j, k;
int sum = 0;
@morganwilde
morganwilde / gist:6767548
Last active December 24, 2015 07:59
Polynomial
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
long long powSafe(
long base,
int exponent,
long module
) {
long long result = 1;
/* Dovile Mikenaite, Ekonometrija, 2 grupe :
2. Su pasirinktais įrašais realizuoti ADT steko operacijas dinaminio dvikrypčio sąrašo pagrindu.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <conio.h>
//typedef int bool;
void Print (struct KNYGA a[], int *i) {
// a - "struct KNYGA" tipo masyvas
// i - masyve "a" esanciu elementu/eiluciu skaicius
// k - dabartines spausdinamos eilutes/elemento skaicius
int k;
for (k=0; k<i; k++){
// for - ciklas, kuris vyksta tol, kol dabartinis elementas "k"
// nevirsyja viso masyvo elementu skaiciaus
void Get (struct KNYGA a[], int *i)
{
int t;
for(t=0; t<*i; t++)
{
strcpy(a[t].pavadinimas, a[t+1].pavadinimas);
strcpy(a[t].autorius, a[t+1].autorius);
a[t].puslapiu = a[t+1].puslapiu;
a[t].metai = a[t+1].metai;
a[t].versta = a[t+1].versta;