Skip to content

Instantly share code, notes, and snippets.

View tony13tv's full-sized avatar

Cristian Torres tony13tv

View GitHub Profile
@tony13tv
tony13tv / component.jsx
Created May 12, 2023 16:07
Tailwind Grid Template Area
export function Component {
return <div className="[grid-template-area:'a_b'_'c_c]">'
<div className="[grid-area:a]">
<GithubLogo/>
</div>
<div className="[grid-area:b]">
Título
Fecha
</div>
<div className="[grid-area:c]">
<!DOCTYPE html>
<html>
<head><title>SOUND</title></head>
<body>
<div>Frequence: <span id="frequency"></span></div>
<script type="text/javascript">
var audioCtx = new (window.AudioContext || window.webkitAudioContext)();
var oscillatorNode = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
@tony13tv
tony13tv / cat21_v2_2.json
Created April 17, 2017 22:02
ASTERIX Protocol CAT21 v2.2
[
{
"IRN": "I021/008"
}
]
@tony13tv
tony13tv / README.md
Last active September 27, 2016 21:29 — forked from kgryte/README.md
D3.js + Orthographic Projection

D3 Visualization: Places Traveled

This gist was originally created to illustrate the data scrubbing process, and all files are associated with my blog post under the same name.

The file progression proceeds from data.txt, a simple text document which contains a list of places, to formatting this original data set as GeoJSON, data.geojson.

Once formatted as GeoJSON, we use D3.js to visualize the data, drawing inspiration from similar visualizations utilizing the same framework.

@tony13tv
tony13tv / config.php
Created August 5, 2016 23:52
Rocketeer Minimal Configuration
<?php
return [
'application_name' => '<application_name>',
'default' => ['development'],
'connections' => [
'production' => [
'host' => '<production_ip_or_domain>',
'username' => '<username>'
],
'development' => [

Semantic Versioning

Details: http://semver.org/, http://apr.apache.org/versioning.html

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.

Patch level changes could also be for correcting incorrect APIs. In this case, the previous patch release may be incompatible, but because of bugs.

Minor versions may introduce new features, but do not alter any of the previous API.

@tony13tv
tony13tv / RealEstateOffice.php
Created January 19, 2016 13:50
Bulk uploading with images for SilverStripe
<?php
/**
* RealEstateOffice Class
*/
class RealEstateOffice extends DataObject {
private static $singular_name = "Real Estate Office";
private static $plural_name = "Real Estate Offices";
private static $db = array(
'OfficeName' => 'Varchar(100)'