Skip to content

Instantly share code, notes, and snippets.

2012
M
1012
MM
12
MMX
2
MMXI
1
MMXII
import java.util.Scanner;
import java.util.Arrays;
public class BinaryConverter {
public static String userOption;
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
<?php
$topListings = array();
$bottomListings = array();
for ( $i = 0; $i < count( $loop->posts ); $i++ ) {
if ( str_word_count( $loop->posts[$i]->post_content ) >= 30 ) {
array_push( $topListings, $loop->posts[$i] );
} else {
array_push( $bottomListings, $loop->posts[$i] );
}
<?php
namespace Slumlords\Bundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Slumlords\Bundle\Entity\bank
*
* @ORM\Table()
Users can have multiple properties. ?
Users can have multiple courses. Many-To-Many, Bidirectional
Courses can have multiple properties. Many-To-Many, Bidirectional
Properties can belong to one user and one course. ?
Users can have multiple properties. ??
Users can have multiple courses. Many-To-Many, Bidirectional
Courses can have multiple properties. ??
Courses can have multiple users. Many-To-Many, Bidirectional
Properties can belong to one user. One-To-Many, Unidirectional
Properties can belong to one course. One-To-Many, Unidirectional
if ($request->isMethod('POST'))
{
$form->bind($request);
if ($form->isValid())
{
$em = $this->getDoctrine()->getManager();
$totalProperties = $request->request->get('columns') * $request->request->get('rows');
for ($i = 0; $i < $totalProperties; $i++) {
<table class="table properties" cellspacing="10" cellpadding="10">
<tbody>
{% for i in 1..course.columns %}
<tr>
{% for i in 1..course.rows %}
<td class="span2">
###########
Rent: 0
</td>
{% endfor %}
@mjhale
mjhale / GridControl-001.gridlang
Last active December 10, 2015 22:29
GridControl Attempt 001
GOTO << @MAIN
@MAIN
CALLFF << @PUSH @NORTH 2
CALLFF << @PUSH @EAST 2
CALLFF << @PUSH @WEST 2
CALLFF << @PUSH @SOUTH 2
bitarray/_bitarray.c:1900: warning: implicit declaration of function âPyLong_Che ckâ
bitarray/_bitarray.c:1903: warning: implicit declaration of function âIntBool_As Intâ
bitarray/_bitarray.c:1910: error: âPyExc_IndexErrorâ undeclared (first use in th is function)
bitarray/_bitarray.c: At top level:
bitarray/_bitarray.c:1915: error: expected â=â, â,â, â;â, âasmâ or â__attribute_ _â before â*â token