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
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist | |
*.acn | |
*.acr | |
*.alg | |
*.bbl |
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
int month_length(int year, int month) | |
{ | |
return (month == 2) ? 28 + !(year % 4) : 30 + (((month * 9) >> 3) & 1); | |
} |
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
int month_length(int m) | |
{ | |
return (0x3bbeecc >> m + m & 3) + 28; | |
} |
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
var util = require('util'); | |
var EventEmitter = require('events').EventEmitter; | |
// EMitter | |
function Timer(interval) | |
{ | |
var that = this; | |
var _interval = interval; | |
this.getInterval = function(){ | |
return _interval; |
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
<html> | |
<head> | |
<title>Learning ajax</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script> | |
(function main () { | |
var httpRequest = new XMLHttpRequest(); |
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
var exec = require('child_process').exec; | |
var options = { | |
cwd : '/' | |
}; | |
exec('ls', options, function ls_function(error, stdout, stderr){ | |
console.log("ls : \n" + stdout); | |
}); |
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
1901 : | |
1 : | |
1 : -4,10 | |
2 : -5,12 | |
3 : -7,16 | |
4 : -3,9 | |
5 : 1,11 | |
6 : -3,9 | |
7 : -7,14 | |
8 : 0,10 |
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
#include <iostream> | |
#include <vector> | |
class Parent { | |
public: | |
virtual void say() { | |
std::cout << "I'm the parent" << std::endl; | |
} | |
}; |
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
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql phpmyadmin --yes | |
sudo chown $USER /var/www -R | |
sudo ln -s /var/www/ ~/Desktop |
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
TEMPLATE = app | |
CONFIG += console | |
CONFIG -= app_bundle | |
CONFIG -= qt | |
SOURCES += main.c | |
INCLUDEPATH += /usr/include/gtk-2.0 \ | |
/usr/include/glib-2.0 \ | |
/usr/lib/i386-linux-gnu/glib-2.0/include/ \ |
OlderNewer