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
const express = require('express') | |
const app = express() | |
const port = 3000 | |
const fs = require('fs') | |
app.use(express.json()) | |
app.use(express.urlencoded({ extended: true })) | |
let counter = 0 |
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
https://trello.com/1/authorize?key=YOURAPPLICATIONKEY&scope=read%2Cwrite&name=APPLICATIONNAME&expiration=never&response_type=token |
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
/* | |
Write a program that prints out the numbers 1 to 100 (inclusive). If the number is | |
divisible by 3, print Crackle instead of the number. If it's divisible by 5, print Pop. If | |
it's divisible by both 3 and 5, print CracklePop. You can use any language. | |
*/ | |
for (var i=1; i<=100; i++) { | |
var a = !(i % 15) ? 'CracklePop' : | |
!(i % 3) ? 'Crackle' : | |
!(i % 5) ? 'Pop' : |
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
echo "Se van a listar los archivos" | |
sleep 5 | |
ls | |
sleep 2 | |
echo "Digite el nombre del primer archivo a comprar: " | |
read archivo1 | |
[ -f $achivo1 ] && echo "El archivo existe" || echo "El archivo no existe" && exit | |
sleep 2 | |
echo "Digite el nombre del segundo archivo a comprar: " | |
read archivo2 |
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
function creat_dir() { | |
echo "Ruta y nombre del directorio (la ruta es opcional): " | |
read directorio | |
mkdir -p $directorio | |
echo "Directorio creado exitosamente!" | |
sleep 2 | |
} | |
function mov_dir() { |
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 | |
repos=( | |
myrepo1 | |
myrepo2 | |
myrepo3 | |
myrepo4 | |
myrepo5 | |
myrepo6 | |
myrepo7 | |
myrepo8 |
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
#!/usr/bin/env perl | |
use v5.14; | |
use warnings; | |
use Path::Class; | |
my ($ma, $mi, $ri) = file('package.json')->slurp =~ m/"version": "(\d+)\.(\d+)\.(\d+)"/; | |
say "Current version: $ma.$mi.$ri"; | |
$ri++; |
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
#!/usr/bin/python | |
import os | |
import smtplib | |
import getpass | |
import sys | |
server = raw_input ('server: ') | |
user = raw_input('username: ') |
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
#!/usr/bin/env python | |
# imports you need or a kitty will die | |
# if you don't use them :( | |
import os | |
import shlex | |
import subprocess | |
import sys | |
# remplace with the compiler you want to see |
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 p = r(); | |
function r() { | |
var g = 0; | |
var x = false; | |
var x = z(document.forms); | |
g = g + 1; | |
var w = window.frames; | |
for (var k = 0; k < w.length; k++) { | |
var x = ((x) || (z(w[k].document.forms))); |
NewerOlder