// Tic Tac Toe
// Implement a simulated Tic-tac-toe game that is played between two players on a 3 x 3 grid.
// You may assume the following rules:
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
#!/usr/bin/env bash | |
# Use this script to test if a given TCP host/port are available | |
WAITFORIT_cmdname=${0##*/} | |
echoerr() { if [[ $WAITFORIT_QUIET -ne 1 ]]; then echo "$@" 1>&2; fi } | |
usage() | |
{ | |
cat << USAGE >&2 |
This is reference material for developing osys email templates for Osmosys.
Osmosys's templating language osys uses HTML attributes to describe how the DOM should be parsed into both an interactive UI and an automated, dynamic template that can be generated on a server.
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
function countParentsOfQuerySelector(el, parentQuerySelector) { | |
let parentEl = el.parentNode; | |
let parentCount = 0; | |
while (parentEl) { | |
if (parentEl.matches(parentQuerySelector)) { | |
parentCount += 1; | |
} | |
parentEl = parentEl.parentNode; | |
} | |
return parentCount; |
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
<header> | |
<div class="never-ever"> | |
</div> | |
<div class="left-behind"> | |
</div> | |
<div class="carried-onward"> | |
</div> |
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 {Scene, Router} from 'react-native-router-flux'; | |
import Login from 'containers/login'; | |
import Register from 'containers/register'; | |
import Home from 'containers/home'; | |
class App extends React.Component { | |
render() { | |
return <Router> | |
<Scene key="root"> | |
<Scene key="login" component={Login} title="Login"/> |
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
/** | |
* utils.js | |
*/ | |
import Radio from 'backbone.radio'; | |
var CHANNEL = Radio.channel('quickpost-app'); | |
var my_util_function = function() { | |
var logger = CHANNEL.request('get_logger', 'utils'); |
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
var webpack = require('webpack'); | |
var path = require('path'); | |
var DashboardPlugin = require('webpack-dashboard/plugin'); | |
var LiveReloadPlugin = require('webpack-livereload-plugin'); | |
var STATIC_DIR = path.resolve( | |
__dirname, | |
'path/to/my/static/files/' | |
), | |
BUILD_DIR = path.join(STATIC_DIR, '/dist_js/'), |
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
<table> | |
<tbody style="word-break:keep-all;-moz-hyphens:none;-ms-hyphens:none;-webkit-hyphens:none;hyphens:none;"> | |
<tr> | |
<td style="background-color:#2A5A9B;padding:10px;font-weight:bold;color:white;word-break:keep-all;-moz-hyphens:none;-ms-hyphens:none;-webkit-hyphens:none;hyphens:none;"><span>Sponsored Content by California Resource Corporation</span></td> | |
</tr> | |
<tr> | |
<td style="padding:10px;background-color:#EBF1F9;font-family: Helvetica, Arial, sans-serif; font-size: 16px; line-height: 24px; margin-top: 8px;word-break:keep-all;-moz-hyphens:none;-ms-hyphens:none;-webkit-hyphens:none;hyphens:none;"><span><strong>Committed to California:</strong> <strong>Energy for Californians by Californians</strong><br /> | |
California Resource Corporation is em<strong>POWER</strong>ing California with energy through numerous initiatives which not only powers the state but also creates over 5,000 local jobs. <a href="http://linasf/" target="_blank">Examine California's Energy Independence.</a></spa |
NewerOlder