This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # http://docs.python.org/tutorial/datastructures.html | |
| l = [ 1, 10, 4, 2, 4, 3, 3, 1, 1, 3] | |
| print l | |
| promedio = sum(l)/len(l) |
This file contains hidden or 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
| dato1 1 10 | |
| dato2 2 20 | |
| dato3 3 30 | |
| # dasadads | |
| dato4 4 40 | |
| dato5 5 50 | |
| # dads | |
| dato6 6 60 | |
| dato7 7 70 | |
| dato8 8 80 |
This file contains hidden or 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
| fun! BufferIsEmpty() "{{{ | |
| if line('$') == 1 && getline(1) == '' | |
| return 1 | |
| else | |
| return 0 | |
| endif | |
| endf "}}} |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # escoger opcion | |
| def opciones(): | |
| print 's : sumar' | |
| print 'r : restar' | |
| print 'q : salir' |
This file contains hidden or 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
| function archiveNotification() { | |
| var threads = GmailApp.getInboxThreads(); | |
| for ( var i = 0 ; i < threads.length; i++){ | |
| var subject = threads[i].getFirstMessageSubject(); | |
| if ( subject == "Notification Subject" ){ | |
| //Logger.log(subject); | |
| GmailApp.moveThreadToArchive(threads[i]) | |
| } |
This file contains hidden or 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
| function ymd(date){ | |
| return Utilities.formatDate(date,"CLT","yyyy-MM-dd"); | |
| } | |
| function calendarsColors(){ | |
| var colors = {}; | |
| var cals = CalendarApp.getAllOwnedCalendars(); | |
| for ( var c = 0 ; c < cals.length ; c++){ | |
| colors[cals[c].getName()] = cals[c].getColor(); | |
| } | |
| return colors; |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import shutil | |
| import random | |
| def verificar(path): | |
| # verificar que el archivo tiene un 10000 | |
| archivo = open(path,'r') | |
| for linea in archivo: |
This file contains hidden or 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
| " http://vim.wikia.com/wiki/HTML_entities | |
| " http://www.bigbaer.com/sidebars/entities/ | |
| " FIXME: you don't know how to use the -range argument! (doesn't work) | |
| command! -range HtmlEncode <line1>,<line2>call HtmlEntities('encode') | |
| command! -range HtmlDecode <line1>,<line2>call HtmlEntities('decode') | |
| " TODO: only accept full lines as a range; would be nice for arbitrary selection | |
| function! HtmlEntities(action) range | |
| " & -> & should be the first substitution | |
| let entities = [ |
This file contains hidden or 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
| sources = $(wildcard *.cpp) | |
| files = $(sources:.cpp=) | |
| all: $(files) | |
| %: %.cpp | |
| g++ -o $@ $< | |
| clean: | |
| rm $(files) |
This file contains hidden or 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 | |
| # | |
| #################################### | |
| # iTunes Command Line Control v1.0 | |
| # written by David Schlosnagle | |
| # created 2001.11.08 | |
| # TODO add -v for echo message | |
| #################################### | |
| showHelp () { |