Skip to content

Instantly share code, notes, and snippets.

View pschyska's full-sized avatar
🤔
Aber das geht doch besser‽

Paul Schyska pschyska

🤔
Aber das geht doch besser‽
View GitHub Profile
js_property :items, [
{
xtype: 'panel',
border: 0,
maintainFlex: true,
activeItem: 0,
layout: {
align: 'stretch',
type: 'vbox'
},
Ext.define("Facade.view.desktop.Desktop",{
extends: 'Ext.container.Viewport',
alias: 'desktop-Desktop',
requires: [
'Facade.view.desktop.app.Banner',
'Facade.view.desktop.app.Container'
],
id: 'viewport',
layout: {
@pschyska
pschyska / mutable.txt
Created June 29, 2012 19:12
Prototype Examples
>>>> Ext.define('Test.view.Explorer', { extend: 'Ext.panel.Panel', showProperties: true, title: 'Properties'});
****** In this case, the String 'My Title' is copied to the object behind foo via Ext.applyIf, because that's what happens with passed config (second param to Ext.create)
>>>> var foo = Ext.create('Test.view.Explorer', {title: 'My Title'});
>>>> foo.title;
"My Title"
>>>> var bar = Ext.create('Test.view.Explorer');
// Copyright © 2010-12 Qtrac Ltd.
//
// This program or package and any associated files are licensed under the
// Apache License, Version 2.0 (the "License"); you may not use these files
// except in compliance with the License. You can get a copy of the License
// at: http://www.apache.org/licenses/LICENSE-2.0.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
class EasypepApi::V1::ShiftsController < EasypepApi::ApplicationController
load_and_authorize_resource
before_filter :find_shift, :except => [:index, :create]
respond_to :json
def index
@shifts = parent_ressource.shifts.accessible_by(current_ability)
respond_with(@shifts)
end
it "should be able to fetch a Shift", ->
@shifts.fetch
wait: true
shift = @shifts.get(window.shifts[0].id)
expect(shift instanceof Easypep.Models.Shift).toBeTruthy()
# Test if model serializes back to test data
expect(shift.toJSON()).toEqual(window.shifts[0])
$header-height: 54px
$navigation-width: 72px
$col-collapsed-width: 96px
.header
height: $header-height
.main
height: 100%
position: absolute
width: 100%
<div class="main">
<div class="header">header</div>
<div class="navigation">nav<br/>nav<br/><nav<br/>nav<br/></div>
<div class="cols">
<div class="col1 width50">col1<br/><br/></div>
<div class="col2 width50">
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>
package main
import ("fmt")
func main() {
סּںסּَ();
☃();
}
func סּںסּَ() {
package main
import ("fmt")
func main() {
π();
}
func π() {
fmt.Printf("christmas!");