Skip to content

Instantly share code, notes, and snippets.

Topher Fangio topherfangio

Block or report user

Report or block topherfangio

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
View test.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View main_pane.js
mainPane: SC.MainPane.design({
childViews: [ 'thescrollview' ],
thescrollview: SC.ScrollView.extend({
hasHorizontalScroller: NO,
hasVerticalScroller: YES,
contentView: SC.View.extend({
@topherfangio
topherfangio / branch-analyzer.rb
Last active Nov 25, 2015
Quick GitHub branch/issue analyzer
View branch-analyzer.rb
#!/usr/bin/env ruby
############
# OVERVIEW #
############
#
# This (very rudimentary) script will show you the status of issues that your
# branches are tied to.
#
# To use, install it with the instructions below, and make sure to include the
@topherfangio
topherfangio / proposed_template_approach.js
Created Sep 26, 2014
Proposed SC.TemplateView Approach
View proposed_template_approach.js
MyApp.MyView = SC.EasySimpleTemplateView.extend({
template: [
"<div class='background' style='position: absolute; top: 0px; left: 0px; width: {{layout.width}}px; height: {{layout.height}}px'></div>",
"<div style='position: absolute; top: 0px; left: 0px; width: {{layout.width}}px; height: {{layout.height}}px'>",
" <div class='title'>{{title}}</div>",
" <img class='icon' src='{{icon}}' />",
" <div class='description'>{{description}}</div>",
"</div>",
(p.new_count > 0 ? "<div class='badge' style='position: absolute; top: 5px; right: 5px;'>{{new_count}}</div>"
View common_view_pattern.js
MyApp.MyView = SC.View.extend({
render: function(context) {
context.push(this._renderHtml());
},
update: function(jQuery) {
jQuery.html(this._renderHtml());
},
@topherfangio
topherfangio / scui2.js
Created Jun 5, 2014
Double Autocomplete view with new BT
View scui2.js
/* begin of file /Users/topher/Documents/Development/profoundry/colla/frameworks/scui2/views/autocomplete.js */
SC.AutocompleteInputView = SC.TextFieldView.extend({
layout: { width: 200, height: 24 },
hint: 'Type here...',
valueBinding: 'Craft.testController.someValue',
isEditable: YES,
beginEditing: function() {
View project_sc_config
# my_project/sc_config
var craft = BT.AppBuilder.create({
path: 'apps/craft',
frameworks: ['firecore', 'core'],
theme: 'scimple_theme',
indexHtml: function () {
return this.renderIndexHtml(this).replace("<head>", "<head><link href='//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' rel='stylesheet'>");
}.property()
@topherfangio
topherfangio / output.js
Created May 9, 2014
Random Abbot Output
View output.js
(function() {
var styles = [];
if (window.devicePixelRatio == 2 || window.location.search.indexOf("2x") > -1) {
styles = ["/static/sproutcore/testing/en/current/source/resources/additions.css?1381979730","/static/sproutcore/testing/en/current/source/resources/runner.css?1381979730","/static/sproutcore/testing/en/current/source/resources/testsuite.css?1381979730","/static/sproutcore/yuireset/en/current/source/resources/base.css?1381979730","/static/sproutcore/yuireset/en/current/source/resources/core.css?1381979730","/static/sproutcore/yuireset/en/current/source/resources/fonts.css?1381979730","/static/sproutcore/yuireset/en/current/source/resources/reset.css?1381979730","/static/sproutcore/yuireset/en/current/source/resources/view.css?1381979730","/static/sproutcore/foundation/en/current/source/debug/test-image.png?1381979730","/static/sproutcore/foundation/en/current/source/resources/benchmark.css?1381979730","/static/sproutcore/foundation/en/current/source/resources/blank.gif?1
@topherfangio
topherfangio / error.txt
Last active Aug 29, 2015
Another Node SC BT Error
View error.txt
> sproutcore@0.1.0 install /Users/topher/Documents/Development/profoundry/collaborate/node_modules/sproutcore
> node post_install.js
SC.browser.experimentalNameFor(): target, [object Object], does not have property `animation` or `undefinedAnimation`.
SC.browser.experimentalNameFor(): target, [object Object], does not have property `transition` or `undefinedTransition`.
SC.browser.experimentalNameFor(): target, [object Object], does not have property `transform` or `undefinedTransform`.
SC.browser.experimentalNameFor(): target, [object Object], does not have property `perspective` or `undefinedPerspective`.
5 May 16:13:29 - Installing sproutcore as global dependency...
/Users/topher/Documents/Development/profoundry/collaborate/node_modules/sproutcore/index.js:81
@topherfangio
topherfangio / error.txt
Last active Aug 29, 2015
SproutCore Node Build Tools - Error on Windows7
View error.txt
Sproutcore NodeJS BuildTools v0.0.1
Adding app todos_one
Adding app todos_two
Adding app todos_three
Starting development server...
Server started on http://localhost:4020
module.js:356
Module._extensions[extension](this, filename);
You can’t perform that action at this time.