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_catalog","table_schema","table_name","table_type","self_referencing_column_name","reference_generation","user_defined_type_catalog","user_defined_type_schema","user_defined_type_name","is_insertable_into","is_typed","commit_action" | |
"cc_db","public","django_migrations","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","core_exercise","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","django_content_type","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","auth_permission","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","auth_group","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","auth_group_permissions","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","pg_catalog","pg_statistic","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","pg_catalog","pg_type","BASE TABLE",,,,,,"YES","NO", | |
"cc_db","public","core_user_groups","BASE TABLE",,,,,,"YES","NO", |
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 { Epic } from 'services/store'; | |
import { Observable } from 'rxjs/Observable'; | |
import * as api from 'services/api'; | |
import * as apiStore from 'services/api-store'; | |
import { getMessagesForDirectMessage } from 'services/messaging'; | |
import * as reducer from './reducer'; | |
function removeArchivedDirectMessages(resources: api.jsonApi.Resource<any, any>[]) { | |
return resources.filter( |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> | |
<script src="local.js"></script> | |
<script src="api_key.js"></script> | |
<script id="config" type="text/javascript" charset="utf-8"> | |
var $parameters = { | |
urlname: "hgskiclub", |
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
class Router | |
include Rails.application.routes.url_helpers | |
def self.default_url_options | |
ActionMailer::Base.default_url_options | |
end | |
end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<!-- Generated by: TmTheme-Editor --> | |
<!-- ============================================ --> | |
<!-- app: http://tmtheme-editor.herokuapp.com --> | |
<!-- code: https://github.com/aziz/tmTheme-Editor --> | |
<plist version="1.0"> | |
<dict> | |
<key>gutterSettings</key> | |
<dict> |
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
public function push() | |
{ | |
foreach ($this->builtParentAssociations as $association => $model) { | |
if (! $model->save) { | |
return false; | |
} | |
// get foreign key for association off $this association and assign $model->getKey() | |
} | |
if (! parent::push()) { |
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
Show hidden characters
[ | |
{ | |
"args": null, | |
"command": "select_all" | |
}, | |
{ | |
"args": | |
{ | |
"set_translate_tabs": true | |
}, |
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\Database\Eloquent\Relations\BelongsToMany; | |
use Illuminate\Database\Eloquent\Relations\BelongsTo; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
abstract class BaseEloquent extends Eloquent | |
{ | |
protected $associations = array(); | |
protected static $SINGULAR_COLLECTION_TYPES = array( |
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
/// SampleModel | |
class SampleModel extends BaseEloquent | |
{ | |
protected $table = 'sample_models'; | |
protected $associations = array( | |
'publishingRule' => array( | |
'belongsTo' => 'PublishingRule' | |
), | |
'previewImage' => array( |
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 namespace Tmb; | |
use Illuminate\Database\Eloquent\Model as Eloquent; | |
use Illuminate\Validation\Validator; | |
class BaseModel extends Eloquent | |
{ | |
/** | |
* Error message bag |
NewerOlder