Skip to content

Instantly share code, notes, and snippets.

View firecentaur's full-sized avatar
🏠
Working from home

Paul Preibisch firecentaur

🏠
Working from home
View GitHub Profile
<span class='likes float-right'>
<span class='en_like bottom-spacer'>
<a href="#" target="_blank">
<i class="fa fa-thumbs-o-up"></i>
</a>{{element.likes}}
</span>
</span>
package SimpleFrameworkExampleHttpServer;
import java.io.PrintStream;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import org.simpleframework.http.Query;
import org.simpleframework.http.Request;
import org.simpleframework.http.Response;
import org.simpleframework.http.core.Container;
@firecentaur
firecentaur / ConjugationServer.java
Created March 24, 2015 06:59
This http server runs on port 8080 and conjugates verbs by analysing the get request, just visit http://localhost:8080/?verb=have
package SimpleFrameworkExampleHttpServer;
import java.io.PrintStream;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import org.simpleframework.http.Query;
import org.simpleframework.http.Request;
import org.simpleframework.http.Response;
import org.simpleframework.http.core.Container;
/**
*
* Angle - Bootstrap Admin App + AngularJS
*
* Author: @themicon_co
* Website: http://themicon.co
* License: http://support.wrapbootstrap.com/knowledge_base/topics/usage-licenses
*
*/
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider' => $dataProvider,
'id'=>'order-grid',
'columns'=>array(
array(
'header' => 'Word',
'name'=> 'Word',
'value' => $data->lemma
<?php
$c = new CDataProvider();
d($c);
?>
<span class="individual word">
<?php
echo $data->lemma;
$mepsenses = $data->getRelated("mepsenses",false);
$data=null;
/*******************************************************************************
* Copyright (c) 2016. Movie English Project
* All rights reserved
*
* This file is a Page Object File for the ViewVideo Page
* @see https://www.thoughtworks.com/insights/blog/using-page-objects-overcome-protractors-shortcomings for more info
******************************************************************************/
'use strict';
//get global vars to use in all specs
<?php
require 'vendor/autoload.php';
use Elasticsearch;
use Elasticsearch\ClientBuilder;
use Elasticsearch\Connections\Connection;
$client = Elasticsearch\ClientBuilder::create()->setHosts(['http://ec2-35-154-104-170.ap-south-1.compute.amazonaws.com:9200'])->build();
{
"took": 12,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 100,

Keybase proof

I hereby claim:

  • I am firecentaur on github.
  • I am rapidfire (https://keybase.io/rapidfire) on keybase.
  • I have a public key whose fingerprint is 7430 442B 68C5 49F4 2A9F 3B61 5B82 DB61 85E9 125C

To claim this, I am signing this object: