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 arr1 = [ | |
["name", "id", "age", "country"], | |
["Susan", "3", "20", "mali"], | |
["John", "1", "21", "chad"], | |
["Jose", "2", "23", "oman"], | |
["Alex", "4", "20", "fiji"], | |
]; | |
const arr2 = [ | |
["name", "id", "height"], |
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
import * as DynamoDB from 'aws-sdk/clients/dynamodb'; | |
import { chunk } from 'lodash'; | |
import { v4 as uuid } from 'uuid'; | |
export type ItemStructure = { [key: string]: any; } | |
export type Filter = { | |
expression: string; | |
values?: ItemStructure; | |
} | ItemStructure; |
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
import React, { useCallback, useEffect, useState } from 'react'; | |
import { Button } from 'semantic-ui-react'; | |
import { MapLatLng } from '../../../../../../../../../models'; | |
import { computeDistanceBetween } from '../../../../../../../../../utils'; | |
type Position = { date: Date; position: MapLatLng }; | |
const MAX_POSITIONS = 3; | |
const Speedometer: React.FC = () => { |
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 | |
apt-get update -y | |
apt install git npm nginx mysql-server -y | |
npm install -g forever | |
mysql -u root -e "CREATE USER 'unicaribe'@'localhost' IDENTIFIED BY 'lajevatuya'" | |
mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'unicaribe'@'localhost';" | |
mysql -u root -e 'FLUSH PRIVILEGES' |
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
{ | |
"version" : "2017-02-28", | |
"operation" : "UpdateItem", | |
"key" : { | |
"id" : { "S" : "${ctx.args.id}" } | |
}, | |
#set( $expNames = {} ) | |
#set( $expValues = {} ) | |
#set( $expSet = {} ) |
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
<?php | |
/** | |
* Tests for the MemeFinder | |
* Includes HTTP and Browser tests | |
*/ | |
namespace Tests\Feature; | |
use Tests\TestCase; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; |
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
<?php | |
for($i=0;$i<1e2;)echo((++$i%3?'':'Fizz').($i%5?'':'Buzz')?:$i),"\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
<?php | |
/** | |
* just to upload files | |
*/ | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Storage; | |
class UploaderController extends Controller |
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
<?php | |
echo 'Programa para leer texto y procesar informacion de ella', "\n"; | |
echo '-------------------------------------------------------', "\n"; | |
$vocales = | |
$consonantes = | |
$numeros = | |
$caracteres = | |
$lista = | |
$resultados = []; | |
echo 'Introduzca el destino del texto:', "\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
-- Made by Zerquix! A nostalgic guy :) | |
tfm.exec.disableAutoNewGame(true) | |
tfm.exec.disableAutoShaman(true) | |
tfm.exec.disableAllShamanSkills(true) | |
tfm.exec.setGameTime(120) -- 2 mins | |
-- old survivor maps -- | |
maps = {'@276534', '@279689', '@280120', '@280159', '@281431', '@281479', '@281492', '@281649', '@289932', '@289964', '@290388', '@290546', '@290725', '@290865', '@290971', '@290974', '@291399', '@291643', '@292592', '@292672', '@292678', '@293222', '@293487', '@295988', '@296033', '@299123', '@300404', '@302224', '@304198', '@304482', '@305748', '@305753', '@306106', '@306360', '@306382', '@307925', '@307930', '@311496', '@390383', '@390386', '@390649', '@390657', '@391057', '@391643', '@391664', '@391738', '@392616', '@392646', '@393406', '@395246', '@397066', '@478116', '@479091', '@481676', '@489470', '@489829', '@908739', '@521931', '@490248', '@540495', '@500312', '@495880' } | |
shaman = '' -- current sham | |
players = {} -- all players in the room | |
messages = { |
NewerOlder