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 PIXI from '/node_modules/pixi.js/dist/pixi.js'; | |
| window.addEventListener("AutoreloadClient.update", function(ev){ | |
| window.location.reload(); | |
| }); | |
| const app = new PIXI.Application(); | |
| document.body.appendChild(app.view); | |
| let _lastId = 0; |
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
| let DocumentConnector = connect((state, ownProps) => { | |
| return { | |
| document: lookupDocument(state, ownProps.documentId), | |
| } | |
| }, (dispatch) => { | |
| // Note: this is actually the default behavior if mapPropsToDispatch is null | |
| // I'm just including it here for clarity | |
| return {dispatch} | |
| }, ({document}, {dispatch}, {documentId}) => { | |
| return { |
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
| // example use | |
| export default let ConnectedActivityFeed = compose( | |
| connect( | |
| ({activityFeeds = {}}, {userId}) => ({ | |
| feedItems: activityFeeds[userId] | |
| }), | |
| { | |
| onPropsChange: ({userId}) => | |
| requestActvityFeedData(userId) |
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
| Puppet::Type.newtype(:aws_security_group) do | |
| @doc = "Manage AWS Security Groups" | |
| newparam(:name) | |
| ensurable | |
| newproperty(:description) | |
| newproperty(:vpc) | |
| autorequire(:aws_vpc) do | |
| self[:vpc] | |
| end | |
| newproperty(:tags) |
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
| /* | |
| Call a non-angular, async function that takes callback (and optional | |
| error) arguments via a $q.defer() object and returns an angular | |
| compatible promise. | |
| For example: | |
| somethingAsync(arg1, arg2, successHandler, failureHandler) | |
| As a promise: |
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//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>changed</key> | |
| <dict> | |
| <key>command</key> | |
| <string>#!/usr/bin/env ruby | |
| flake_bin = ENV['TM_FLAKE8_BIN'] || '/usr/local/bin/flake8' |
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
| // $.fn.newContent behaves kinda like .live(), it will act on elements that match the | |
| // selector now, or in the future... It automatically runs on any elements immediately | |
| // matched, and also runs once on document ready. You then call .newContent() on any | |
| // freshly created content to trigger searching it | |
| // It will call the given callback function in the context of a | |
| // jQuery set that matches the selector... | |
| $("li.test").newContent(function() { | |
| this.css("color", "red"); |
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
| x = self._cache.setdefault('network'): | |
| x or IPAddress(self._ip & int(self.netmask), version=self._version) |
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
| name = project.contact?.name | |
| # equivalent to: | |
| temp = getattr(project, 'contact', None) | |
| if temp is Null: #or just if not temp... whevs | |
| name = temp | |
| else: | |
| name = temp.name |
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
| From 54368c5fc6f4bdecc7018462e03d1730fdf2507c Mon Sep 17 00:00:00 2001 | |
| From: Patrick Aljord <patcito@zeta.cc> | |
| Date: Wed, 28 Oct 2009 13:28:18 -0500 | |
| Subject: [PATCH] added task to update comments counts in entries | |
| --- | |
| lib/tasks/integrity.rake | 19 +++++++++++++++++-- | |
| 1 files changed, 17 insertions(+), 2 deletions(-) | |
| diff --git a/lib/tasks/integrity.rake b/lib/tasks/integrity.rake |
NewerOlder