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
// Element store | |
const elementStore = class ElementStore { | |
// set initial state | |
@observable path = null | |
@observable visible = false | |
@observable list = {} | |
// create a new instance of element store | |
constructor() { | |
this.list = sortElementsByName(elements) |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"github.com/codegangsta/martini" | |
"github.com/garyburd/redigo/redis" | |
"github.com/martini-contrib/render" |
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 | |
/* | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Formerly known as::: | |
:: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu | |
:: | |
:: This class is a rewritten 'GifMerge.class.php' version. | |
:: | |
:: Modification: |
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
package main | |
import ( | |
"log" | |
"myserver" | |
"net/http" | |
) | |
const addr = "localhost:12345" |
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
type ( | |
// BuoyCondition contains information for an individual station. | |
BuoyCondition struct { | |
WindSpeed float64 `bson:"wind_speed_milehour"` | |
WindDirection int `bson:"wind_direction_degnorth"` | |
WindGust float64 `bson:"gust_wind_speed_milehour"` | |
} | |
// BuoyLocation contains the buoy's location. | |
BuoyLocation struct { |
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
{ | |
"Kwajalein":"(GMT-12:00) International Date Line West", | |
"Pacific\/Midway":"(GMT-11:00) Midway Island", | |
"Pacific\/Samoa":"(GMT-11:00) Samoa", | |
"Pacific\/Honolulu":"(GMT-10:00) Hawaii", | |
"America\/Anchorage":"(GMT-09:00) Alaska", | |
"America\/Los_Angeles":"(GMT-08:00) Pacific Time (US & Canada)", | |
"America\/Tijuana":"(GMT-08:00) Tijuana, Baja California", | |
"America\/Denver":"(GMT-07:00) Mountain Time (US & Canada)", | |
"America\/Chihuahua":"(GMT-07:00) Chihuahua", |
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 | |
use Illuminate\Http\UploadedFile; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
class SubscribersTest extends TestCase | |
{ | |
use DatabaseMigrations, WithoutMiddleware; |
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 | |
trait HttpResponse | |
{ | |
/** | |
* Response unprocessable entity. | |
* | |
* @param array $message | |
* | |
* @return \Illuminate\Http\JsonResponse |
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
/****************************************************************************************** | |
* | |
* Headers for cors. | |
* | |
*****************************************************************************************/ | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE'); | |
header('Access-Control-Allow-Headers: Content-Type, X-Auth-Token, Origin, Authorization'); |
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
@extends('layouts.default') | |
@section('content') | |
<subscribers-list inline-template> | |
<div class="main"> | |
<div class="container"> | |
<div class="row"> | |
<div class="row"> | |
<!-- table top --> | |
<div class="col-md-6"> |