git config --global user.name "Tu nombre"
git config --global user.email "Tu correo"
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
class Empleado extends React.Component { | |
render () { | |
return ( | |
<li> | |
{this.props.nombre} - {this.props.email} | |
</li> | |
); | |
} | |
} |
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
$(document).ready(function () { | |
var $btn = $('.btn'); | |
var $image = $('#img'); | |
function Filter (config) { | |
this.target = config.target; | |
this.image = config.image; | |
this.filters = config.filters; | |
this.support = config.support === undefined ? true : config.support; |
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
func Sqrt(x float64) (z float64) { | |
z = 1.0 | |
for i := 0; i < 20; i++ { | |
z = z - (z * z - x) / (2 * z) | |
} | |
return z | |
} |
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
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
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 __future__ import division | |
from itertools import chain | |
from pyknon.genmidi import Midi | |
from pyknon.music import Note, NoteSeq | |
def fib(n): | |
a, b = 0, 1 | |
fibo = [a, b] | |
while b < n: |
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 <stdio.h> | |
#include <stdlib.h> | |
int ans(int n){ | |
int sum=0; | |
for(int i=1; i<n; i++){ | |
if(n%i==0){ | |
sum+=i; | |
} | |
if(sum>n) |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
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
<?xml version="1.0" encoding="utf-8"?> | |
<colorTheme id="9999" name="One Dark Like" modified="2015-09-01 19:55:49" author="Adam Gent" website="http://snaphop.com"> | |
<searchResultIndication color="#E5C07B" /> | |
<filteredSearchResultIndication color="#E5C07B" /> | |
<occurrenceIndication color="#4B4E55" /> | |
<writeOccurrenceIndication color="#4B4E55" /> | |
<findScope color="#4B4E55" /> | |
<deletionIndication color="#DF5F5F" /> | |
<sourceHoverBackground color="#4B4E55" /> | |
<singleLineComment color="#969896" italic="false" /> |
NewerOlder