Skip to content

Instantly share code, notes, and snippets.

View MacgyverMartins's full-sized avatar

Macgyver MacgyverMartins

View GitHub Profile
@MacgyverMartins
MacgyverMartins / bootstrap-4-sass-mixins-cheat-sheet.scss
Created August 14, 2018 15:27 — forked from anschaef/bootstrap-4-sass-mixins-cheat-sheet.scss
Bootstrap 4 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 4 Sass Mixins [Cheat sheet]
// Updated to Bootstrap v4.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/v4-dev/scss/mixins
/* -------------------------------------------------------------------------- */
// Grid variables
$grid-columns: 12 !default;
$grid-gutter-width: 30px !default;
@MacgyverMartins
MacgyverMartins / site.js
Created June 28, 2019 15:30
Select de estado cidade para wix
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
import { getJSON } from 'wix-fetch';
$w.onReady(function () {
getJSON('https://api.myjson.com/bins/1f4ht7').then(json => {
const estadosList = json.data.map(i => {
return { label: i.nome, value: i.nome }
});
$w('#dropdown1').options = estadosList
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {