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
// this constant won't change: | |
const int buttonPin = 2; // the pin that the pushbutton is attached to | |
const int ledPin = 13; // the pin that the LED is attached to | |
// Variables will change: | |
int buttonPushCounter = 0; // counter for the number of button presses | |
int buttonState = 0; // current state of the button | |
int lastButtonState = 0; // previous state of the button | |
void setup() { |
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
Apr 21 70 74 514 | |
Apr 31 52 63 420 | |
Aug 15 34 47 316 | |
Feb 15 32 24 226 | |
Feb 26 58 80 652 | |
Jan 13 25 15 115 | |
Jan 21 36 64 620 | |
Jul 24 34 67 436 | |
Jun 31 42 75 492 | |
Mar 15 24 34 228 |
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
#!/bin/bash | |
# Adds up a specified column (of numbers) in the target file. | |
# Floating-point (decimal) numbers okay, because awk can handle them. | |
ARGS=2 | |
E_WRONGARGS=85 | |
if [ $# -ne "$ARGS" ] # Check for proper number of command-line args. | |
then |
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 django framework | |
----------------------------------------- */ | |
pip install django // install django | |
pip instal django=1.4.3 // install django with specified version | |
django-admin.py startproject <project-name> // create a new project named 'myproject' | |
django-admin.py startapp <app-name> // create a new app named 'myproject' inside project |
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
/* ----------------------------------------- | |
Install node.js and npm in Debian | |
----------------------------------------- */ | |
*firts way (recommended): | |
sudo apt-get install python-software-properties python g++ make | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm |
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
/* ----------------------------------------- | |
Install Ruby and RubyGems in Debian | |
----------------------------------------- */ | |
$ sudo apt-get install ruby1.9.1 | |
$ sudo apt-get install rubygems | |
/* ----------------------------------------- | |
Using Saas | |
----------------------------------------- */ |
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
/* ----------------------------------------- | |
Install node.js and npm in Debian | |
----------------------------------------- */ | |
sudo apt-get install python-software-properties | |
sudo apt-add-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm |
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.h> | |
#include<conio.h> | |
#include<fstream.h> | |
#include<stdio.h> | |
#include<dos.h> | |
class hotel | |
{ | |
int room_no; | |
char name[30]; |
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
Run this in your command line to make the process begin: | |
$ curl -o ko3_structure.sh https://raw.github.com/gist/1702555/ko3_structure.sh && ./ko3_structure.sh |
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
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* STYLES GO HERE */ | |
} | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { |
OlderNewer