Skip to content

Instantly share code, notes, and snippets.

View matsko's full-sized avatar

Matias Niemelä matsko

View GitHub Profile
{
"public_identifier": "eden-marco",
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/eden-marco/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20231008%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20231008T100817Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=dcf1acc978f105513517e9ab70cf55b704737a74d96e5914a500b561a11e324b",
"background_cover_image_url": null,
"first_name": "Eden",
"last_name": "Marco",
"full_name": "Eden Marco",
"follower_count": 2919,
"occupation": "LLM Specialist, Customer Engineering - Google Cloud at Google",
"headline": "LLM Specialist @ Google Cloud | Best-selling Udemy Instructor | Backend dev with passion for GenAI",
+ ./node_modules/.bin/ngc
+ ./node_modules/.bin/jasmine init
+ ./node_modules/.bin/jasmine test/animate_spec.js test/basic_spec.js test/projection_spec.js
/private/var/folders/z3/h3ln_qgx4c94x5j63mqdy4r4007j4y/T/e2e_test.1464908341/node_modules/zone.js/dist/zone.js:113
var setNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {
^
TypeError: Cannot read property 'prototype' of undefined
at patchXHR (/private/var/folders/z3/h3ln_qgx4c94x5j63mqdy4r4007j4y/T/e2e_test.1464908341/node_modules/zone.js/dist/zone.js:113:63)
at Object.<anonymous> (/private/var/folders/z3/h3ln_qgx4c94x5j63mqdy4r4007j4y/T/e2e_test.1464908341/node_modules/zone.js/dist/zone.js:81:2)
var classNameFilter = $animateProvider.classNameFilter();
var isAnimatableClassName = !classNameFilter ?
function() { return true; } :
function(className) {
return classNameFilter.test(className);
}
var isAnimatableClassName = function() { return true; };
var classNameFilter = $animateProvider.classNameFilter();
if(classNameFilter) {
isAnimatableClassName = function(className) {
return classNameFilter.test(className);
}
}
one: function(element, type, fn) {
element = jqLite(element);
element.on(type, fn);
element.on(type, function onFn() {
element.off(type, onFn);
element.off(type, fn);
});
},
element.on('$animate:start', onAnimateStart);
element.on('$animate:close', onAnimateClose);
function onAnimateStart(data) {
element.off('$animate:start', onAnimateStart);
//do stuff
}
function onAnimateClose(data) {
element.off('$animate:close', onAnimateClose);
.
├── Gruntfile.js
├── README.md
├── app
│   ├── assets
│   │   ├── app.css
│   │   └── app.js
│   ├── font
│   │   ├── FontAwesome.otf
│   │   ├── font
<script type="text/ng-template" id="form-template">
<div ng-messages>
<div ng-message="invalid">You entered an invalid value for this field</div>
<div ng-message="required">This value is required</div>
<div ng-message="minlength">Your value is too short</div>
</div>
</script>
<form>
<input name="myEmailInput" />
myModule.animation('.slide', function($animateStagger) {
return {
enter : function(element, done) {
return $animateStagger(element, function(index) {
});
}
}
});
describe('App', function() {
beforeEach(module('myApp'));
describe('itemHistory factory', function() {
it('should have working push and list functions', inject(function(itemHistory) {
itemHistory.push({ id : 1, title:'yes' });
expect(itemHistory.list()).toEqual([{ id :1, title:'yes'}]);