This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* From css-tricks.com | |
* http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#heart{ | |
position:relative; | |
top:20px; | |
left:20px; | |
width:200px; | |
height:200px; | |
} | |
#heart:before, | |
#heart:after{ | |
background:red; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#div1 | |
{ | |
position: relative; | |
height: 200px; | |
width: 200px; | |
margin: 50px; | |
padding:10px; | |
border: 1px solid black; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table{ | |
font-family:Courier; | |
} | |
th{ | |
background:#BADA55; | |
padding:40px; | |
box-sizing:border-box; | |
} | |
tr{ | |
background:lightblue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST["email"]) && !empty($_POST["email"])){ | |
//if(!$_POST) exit; | |
$email = $_POST['email']; | |
$name = $_POST['name']; | |
$comments = $_POST['comments']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// A console to display Unity's debug logs in-game. | |
/// </summary> | |
public class Console : MonoBehaviour | |
{ | |
struct Log | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
M[16],X=16,W,k;main(){T(system("stty cbreak") | |
);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i | |
,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M | |
[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<< | |
(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k) | |
]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d | |
-1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X] | |
*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4; | |
)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4|| | |
puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .bashrc file for PS1 customzation | |
export PS1='\[\e[1;34m\][\u@\h \W]\$\[\e[0m\] ' | |
# file /etc/motd - change to whatever wanted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv | |
CAMERA_INDEX = 0 | |
# CODEC = cv.CV_FOURCC('D','I','V','3') # MPEG 4.3 | |
# CODEC = cv.CV_FOURCC('M','P','4','2') # MPEG 4.2 | |
# CODEC = cv.CV_FOURCC('M','J','P','G') # Motion Jpeg | |
# CODEC = cv.CV_FOURCC('U','2','6','3') # H263 | |
# CODEC = cv.CV_FOURCC('I','2','6','3') # H263I | |
# CODEC = cv.CV_FOURCC('F','L','V','1') # FLV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// "vector.c" | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include "vector.h" | |
void vector_init(vector *v) | |
{ |
OlderNewer