Skip to content

Instantly share code, notes, and snippets.

const dayjs = require("dayjs");
const data = {
result: {
farmName: "Whitecreek Farm",
farmInfo: [
{
id: 1,
date: "22/02/2020",
type: "icon--reciept",
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
BucketName:
Type: String
Resources:
S3:
Type: "AWS::S3::Bucket"
Properties:
BucketName: !Ref BucketName
S3BucketPolicy:
@Sigmus
Sigmus / test.md
Last active December 23, 2015 18:25

Ola

Ola de novo

sou um teste agora em itálico

@Sigmus
Sigmus / package.json
Created December 13, 2015 15:15
React Native "build:ios" example
{
"name": "xpto",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start",
"build:ios": "react-native bundle --dev=true --platfornm=ios --entry-file=index.ios.js --bundle-output=main.jsbundle"
},
"dependencies": {
"react-native": "0.16.0"
// clica em cor, motor ou opcional
// altera objeto dude e manda
// gerar urls de todas as imagens
// de novo
var dude = {
color: 296,
version: 'longitude',
engine: 100,
opcionais: [
{code: '430', selected: true},
@Sigmus
Sigmus / country.js
Created August 31, 2015 21:55
Country Name
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;

layout: post title: Next circular array item

A function that returns the next item in a given array. Starts over when the last item is reached.

var next = nextCircularItem(['x', 'y', 'z']);
{
"caret_style": "phase",
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/contrast/earthsong-contrast.tmTheme",
"create_window_at_startup": false,
"font_face": "Inconsolata",
"font_size": 17.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@Sigmus
Sigmus / focus-first-ref.js
Last active August 29, 2015 14:21
React mixin to focus element with ref="firstInput"
const React = require('react');
module.exports = {
componentDidMount() {
this.focusFirstInput();
},
focusFirstInput() {
const input = this.refs.firstInput; // <input ref="firstInput" />
{"date":{"$date":"2015-02-04T00:00:00.744+0000"},"ask_price":1.14568,"bid_price":1.14564,"ask_volume":1,"bid_volume":5.21000003814697}
{"date":{"$date":"2015-02-04T00:00:01.200+0000"},"ask_price":1.1457,"bid_price":1.14566,"ask_volume":2.25,"bid_volume":1}
{"date":{"$date":"2015-02-04T00:00:02.618+0000"},"ask_price":1.1457,"bid_price":1.14567,"ask_volume":1,"bid_volume":1}
{"date":{"$date":"2015-02-04T00:00:03.124+0000"},"ask_price":1.1457,"bid_price":1.14566,"ask_volume":1,"bid_volume":1}
{"date":{"$date":"2015-02-04T00:00:06.447+0000"},"ask_price":1.1457,"bid_price":1.14566,"ask_volume":1,"bid_volume":2.25}
{"date":{"$date":"2015-02-04T00:00:06.962+0000"},"ask_price":1.14571,"bid_price":1.14568,"ask_volume":1.5,"bid_volume":1.5