I hereby claim:
- I am danno040 on github.
- I am mikefeineman (https://keybase.io/mikefeineman) on keybase.
- I have a public key whose fingerprint is 7908 034B EFC2 ED22 01FE FB77 FA73 FDCC 29FB 525C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import React from 'react'; | |
import { FilteredPackageStore } from '../stores/FilteredPackageStore'; | |
import { FilteredPackageService } from '../services/FilteredPackageService'; | |
export default class PackageListing extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = this.getPackagesState(); | |
this._onChange = this._onChange.bind(this); | |
} |
<html> | |
<body> | |
<form method="POST" action="<?php echo $_SERVER['REQUEST_URI'] ?>"> | |
<label>API Key</label><br /> | |
<input type="text" name="api_key" value="<?php echo isset($_POST['api_key']) ? $_POST['api_key'] : '' ?>" /><br /> | |
<br /> | |
<label>Domain</label><br /> | |
<input type="text" name="domain" value="<?php echo isset($_POST['domain']) ? $_POST['domain'] : '' ?>" /><br /> |
Validator::extend('realdomain', function ($attribute, $value, $parameters) { | |
$domain = idn_to_ascii($value); | |
// Basic "is domain" check | |
if (filter_var('http://' . $domain, FILTER_VALIDATE_URL) === false) { | |
return false; | |
} | |
// Grab the A records and CNAMES | |
$records = dns_get_record($domain, DNS_ALL); |
<script> | |
$('body').on('composer.rendered', '.composer-link', function() { | |
// Set default category to current category | |
var currentCategoryId = $('ul.dropdown-menu li.active').data('id'); | |
$('.modal-body').find('select[name$="category"]').val(currentCategoryId).trigger('change'); | |
}); | |
</script> |
<script> | |
$(document).ready(function() { | |
var html = '<li class="dropdown">'; | |
html += '<a href="/entertainment" class="dropdown-toggle" data-toggle="dropdown">Entertainment <b class="caret"></b></a>'; | |
html += '<ul class="dropdown-menu">'; | |
html += '<li><a href="/entertainment/games">Games</a></li>'; | |
html += '<li><a href="/entertainment/music">Music</a></li>'; | |
html += '</ul>'; | |
html += '</li>'; | |
$('#menu ul').append(html); |