Skip to content

Instantly share code, notes, and snippets.

View matsko's full-sized avatar

Matias Niemelä matsko

View GitHub Profile
Miss Beulah Roob
Trent Morissette
Miss Ava Pouros
Rod Pouros
Abdul Rice
Laurie Rutherford Sr.
Nakia McLaughlin
Jordon Blanda DVM
Rhoda Hand
Alexandrea Sauer
trigger(element, event: string, data): Promise<any> {
if (this.isSelectorMatch(element)) {
var operations = this._lookup[event];
return operations.length
? operations.filter((op) => op.test(element, data))
.map((op) => wrap(op.fn(element, data)))
: noopPromise;
}
return noopPromise;
}
isUniqueChars(String str) {
if (str.length() > 256) return false;
int checker = 0;
for (int i = 0; i < str.length(); i++) {
int val = str.charAt(i) - 'a';
if ((checker & (i << val)) > 0) {
return false;
}
checker |= (1 << val);
ctx.onLeave(
stagger(keyframe({
'0%': { transform: 'scale(1)' },
'25%': { transform: 'scale(1.4)' },
'100%': { transform: 'scale(0)', opacity: 0 },
}, 1000), staggerTimers.reverse(100))
);
<!-- this is the directive -->
<div ng-include ng-animate="enter: enter" style="-webkit-transition: 1s linear all">
<div class="ng-animate-enter-setup ng-animate-enter-start">
<!-- this is the template HTML -->
<div>….</div>
</div>
</div>
/**
* @ngdoc function
* @name ng.animator#hide
* @methodOf ng.$animator
*
* @description
* Starts the hide animation first and sets the CSS `display` property to `none` upon completion.
*
* @param {jQuery/jqLite element} element the element that will be rendered visible or hidden
*/
.factory('appLoading', function($rootScope) {
var timer;
return {
loading : function() { // this is the line that gets called when you appLoading.loading(), right?
Yes. This gets called whenever I want the page to indicate a loading operation. loading() starts sets the animatio flag
which starts the animation icon loading at the top of the app.
clearTimeout(timer);
$rootScope.status = 'loading';
@matsko
matsko / damyan.rb
Last active December 17, 2015 01:08
class Damyan
def self.come_out
@come_out_response ||= "No sorry not this time"
end
end
class Damyan
def self.come_out
if @come_out_response.nil?
if(false)
@come_out_response = "Sure! Lets do it!"
else
@come_out_response = "No sorry not this time"
end
end
echo "hello"