Skip to content

Instantly share code, notes, and snippets.

Roberto Saccon rsaccon

Block or report user

Report or block rsaccon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rosskevin
rosskevin / Box.js
Created Sep 23, 2016
Samples for material-ui `next` responsive layout/grid using JSS (originally based on flexboxgrid.com)
View Box.js
// @flow
import React, {Element, PropTypes} from 'react'
import pure from 'recompose/pure'
import {createStyleSheet} from 'jss-theme-reactor'
import classNames from 'classnames'
import Logger from '../../../util/Logger'
type Props = {
type: ?string,
children: ?Element<any>
@rosskevin
rosskevin / Col.js
Last active Sep 7, 2018
material-ui `next` responsive layout/grid using JSS (originally based on flexboxgrid.com)
View Col.js
// @flow
import React, {Component, Element, PropTypes} from 'react'
import classNames from 'classnames'
import pure from 'recompose/pure'
import merge from 'lodash/merge'
import {createStyleSheet} from 'jss-theme-reactor'
import Logger from '../../util/Logger'
import {capitalizeFirstLetter} from '../../util/strings'
type DefaultProps = {
@sompylasar
sompylasar / Viewport.js
Last active Mar 18, 2017
Viewport React component with animated scrolling and overlay handling.
View Viewport.js
import React, { Component, PropTypes } from 'react';
import verge from 'verge';
import { Motion, spring } from 'react-motion';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import styles from './styles.scss';
@ppcano
ppcano / ember_reopen.js
Created May 20, 2014
hammerJS + ember integration
View ember_reopen.js
Em.View.reopen({
hammerOptions: null,
enableHammer: function() {
var gestures = ['drag', 'hold', 'release', 'swipe', 'tap', 'touch', 'transform'];
var options = this.get('hammerOptions');
if ( options ) {
gestures.forEach(function(gesture) {
if ( !options[gesture] ) {
@ronkorving
ronkorving / ios6-timers.js
Last active Jul 13, 2018
iOS6 webkit timer bug workaround
View ios6-timers.js
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise
// that it works, or that I will provide support (don't sue me).
// Author: rkorving@wizcorp.jp
var timeouts = {};
@charlesjolley
charlesjolley / dev_view.coffee
Created Aug 21, 2012
Adding event locks to Ember
View dev_view.coffee
# example view implements a simple dragging for mouse events.
Wall.DevView = Ember.View.extend
mouseDown: (ev) ->
ev.dispatcher.lock @, 'mouseMove', 'mouseUp'
@_mouseDown = @$().offset()
@_mouseDown.pageX = ev.pageX
@_mouseDown.pageY = ev.pageY
@_mouseDown.dispatcher = ev.dispatcher
console.log 'mouseDown'
@ppcano
ppcano / logo_switch_button.css
Created Jul 10, 2012
Flip Switch Button with Ember on Touch Environment
View logo_switch_button.css
@white00:#fefefe;
@white01:#f9f9f9;
@white02:#fbfbfb;
@white03:#f0f0f0;
@white04:#efefef;
@grey00:#919191;
@grey01:#7d7d7d;
@grey02:#7f7f7f;
@grey03:#b6b6b6;
@pixelcort
pixelcort / gist:1820866
Created Feb 13, 2012
relationships using DS.Store#filter
View gist:1820866
App.FirstModel = DS.Model.extend({
foreignUnsorted: function() {
return App.store.filter(App.ForeignModel, function(hash) {
return false;
});
}.property().cacheable(),
foreign: function() {
var foreignUnsorted = this.get('foreignUnsorted');
return foreignUnsorted.toArray().sort(function(a,b) {
View tab_view.js
require('app/app');
var get = Ember.get , set = Ember.set, setPath = Ember.setPath, getPath = Ember.getPath;
// Tab View was created because a general Tab did not
// work because the flip animation
// with z-index opacity feature won't work, because it shows the hidden z-index panels
App.TabMainView = Ember.Mixin.create({
View Makefile
update:
rm -rf packages/*; \
cp -pr ~/Git/forks/ember.js/packages/* ./packages; \
cp -pr ~/Git/forks/sproutcore-touch/packages/ember-touch ./packages; \
cp -pr ~/Git/emberjs/ember-mk/packages/ember-mk ./packages
You can’t perform that action at this time.