Skip to content

Instantly share code, notes, and snippets.

View MilkZoft's full-sized avatar

Carlos Santana Roldán MilkZoft

View GitHub Profile
@MilkZoft
MilkZoft / hello.php
Created January 14, 2012 16:38
code.jobs - Hello World - PHP
<?php
print "Hello World";
?>
@MilkZoft
MilkZoft / hola.php
Created January 14, 2012 17:10
code.jobs - Hola Mundo - PHP
<?php
print "Hola Mundo";
?>
@MilkZoft
MilkZoft / hello.py
Created January 14, 2012 17:18
code.jobs - Hello World - Python
#!/usr/bin/python
print "Hello World"
raw_input()
@MilkZoft
MilkZoft / hello.java
Created January 14, 2012 17:36
code.jobs - Hello World - Java
/**
* To compile and run this code you need to execute the following statements:
* javac hello.java
* java HelloWorld
*/
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
@MilkZoft
MilkZoft / hello.sh
Created January 14, 2012 17:58
code.jobs - Hello World - Bash
#!/bin/bash
echo "Hello World!"
@MilkZoft
MilkZoft / hola.sh
Created January 14, 2012 17:59
code.jobs - Hola Mundo - Bash
#!/bin/bash
echo "Hola Mundo!"
@MilkZoft
MilkZoft / hola.cpp
Created January 14, 2012 18:14
code.jobs - Hola Mundo - C++
#include <iostream>
using namespace std;
void main() {
cout << "Hola Mundo!" << endl;
}
@MilkZoft
MilkZoft / index.html
Created January 14, 2012 19:18
code.jobs - My first web page in HTML5 - HTML5
<!DOCTYPE html>
<html lang="en">
<head>
<title>My first web page</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
@MilkZoft
MilkZoft / hello.html
Created January 14, 2012 19:32
code.jobs - Hello World - jQuery
<!DOCTYPE html>
<html>
<head>
<title>jQuery Hello World</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
</head>
<body>
<script type="text/javascript">
@MilkZoft
MilkZoft / word.php
Created January 16, 2012 02:50
code.jobs - Word Count - PHP
<?php
function wordCount($text) {
$words = explode(" ", $text);
return count($words);
}
$words = wordCount("Welcome to code.jobs");
print $words;