/* global document */
import { storiesOf } from '@storybook/html';
storiesOf('Demo', module)
.add('heading', () => '<h1>Hello World</h1>')
.add('button', () => {
const button = document.createElement('button');
This file contains hidden or 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 { forEach } from "./utils/pollyfills"; | |
export default function SelectCustom() { | |
let selects = document.querySelectorAll(".select-custom"); | |
forEach(selects, selectsSet); | |
function selectsSet(select) { |
This file contains hidden or 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
html { | |
font-size: calc(0.6em + 1vw); | |
} |
This file contains hidden or 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains hidden or 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
int main() | |
{ | |
int x; | |
ifstream infile; | |
infile.open("silly.dat", ios::binary | ios::in) | |
infile.read(&x, 7); // reads 7 bytes into a cell that is either 2 or 4 | |
} |
This file contains hidden or 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
print "This is my game." | |
print "You liked the game whit me?" | |
print "Response yes or no." | |
quest = raw_input() | |
if quest == "yes": | |
print "Okay, let's go the menu." |
This file contains hidden or 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 | |
// Add Shortcode | |
function special_title_shortcode( $atts , $content = null ) { | |
// Attributes | |
extract( shortcode_atts( | |
array( | |
'class' => '', | |
), $atts ) |
This file contains hidden or 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
// Shortcode Agenda | |
function agenda_shortcode() { | |
//@ini_set('display_errors', 0); | |
$html = ""; | |
$week = array('segunda', 'terca', 'quarta', 'quinta', 'sexta', 'sabado', 'domingo'); |
This file contains hidden or 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
// <div class="spinner-css"> | |
// <span class="side sp_right"> | |
// <span class="fill"></span> | |
// </span> | |
// <span class="side sp_left"> | |
// <span class="fill"></span> | |
// </span> | |
// <span class="spinner-css-loading"></span> | |
// </div> |