Dump your code and share it

Codedump.io let's you dump code and share it with anyone you'd like.

shittttttt

Twig
19 hours ago

wp-tmp.php

PHP
wp-tmp.php
2 days ago

old code

PHP
old code
4 days ago

File Reads for Bab

Go
5 days ago

File Read for Babies

Go
5 days ago

views/departmentdata.php

PHP
6 days ago

welcome.php

PHP
6 days ago

models/departments.php

PHP
Creating Model, Controller and View for a Pagination System in CodeIgniter Application.
6 days ago

Good old dump

C#
24 days ago

NavItem return type in react, reactstrap

TypeScript
I've created a function that takes props and makes an array of . I want to know the return type I can use for this function so that it is type safe. I...
29 days ago

Typescript using constructor in a class won't allow for new keyword

TypeScript
I want to be able to new up my Menu Class but I cannot when using a constructor, why is this? model = new Menu(); So that I can then set each prope...
29 days ago

Passing a prop to a child created after component mounts

TypeScript
I have a component that is a container for a <canvas>. I have other components that take a canvas context as a prop and can be used to manipulat...
29 days ago

Angular EventEmitter not found

TypeScript
I created a project by using Angular CLI, but when I try to use EventEmitter, it fails to compile with the error "Can't resolve '@angular/core/src/eve...
29 days ago

ng bootstrap 4 - typeahead open on focus

TypeScript
I use ng-bootstrap 4 (beta 8). At the moment i have this: <ng-template #rt let-r="result" let-t="term"> {{ r.label }} </ng-template> ...
29 days ago

Typescript server in VSCode incorrectly reports unused private variable

TypeScript
Why does typescript report that the variable is not used even though it is referenced inside _close() method? The weird thing is that if I remove the...
29 days ago

ASP.Net Core 2 - Using Url.Action to generate url to web api behaves differently?

TypeScript
I've used the helper Url.Action to pass relative URLs from MVC views to Typescript/Javascript classes before in full ASP.Net MVC with success. Here is...
29 days ago

How can make TypeScript in WebStorm to parse alias of webpack?

TypeScript
I using TypeScript (2.6.2) in WebStorm (2017.3) with webpack (2.6.1). I create some alias of webpack: //webpack.config.js resolve: { alias: { ...
29 days ago

Typescript Typings definition errors

TypeScript
I am currently having issues adding proper type definitions to my project. I am very new to typescript and am following the guidance of a book (called...
29 days ago

Can I write a Twig Extension to access previous and next element in a loop

Twig
I was wondering if there is a way to create functions (or whatever) in Twig, so I can access the next and the previous element in a for loop. Somethin...
29 days ago

Configure Identity Server 4 With Ionic 2

TypeScript
I'm trying to configure Identity Server to work with Ionic 2. I'm a bit confused on how to configure the Redirect urls. For when I'm testing in the b...
29 days ago

Vue.js can't set background-image in :style (twig template)

Twig
I'm using Vue.js at my Symfony 3.4 project. I have a problem with seting my background-image from object via Vue.js I'm looping through my elements ...
29 days ago

Firebase create model which has optional values in swift

Swift
I would like to create model which has optional values. I implemented flatmap to achieve that. node look like this and imageUrl does not exist everyti...
29 days ago

using ajax in a symfony project to delete item

Twig
hello I'm looking for a script that could allow me to delete item in a symfony project using ajax, I didn't find any solution for this I tried to dele...
29 days ago

typescript/eS5-ES6 module is not getting called

TypeScript
I don't know what's wrong as I'm new in Angular2,typescript,es5 and es6. Look at plnkr. I don't understand why my FirstComponent is not getting called...
29 days ago

How do I navigate forward and backward within UIPageViewController using buttons?

Swift
I'm creating an onboarding app for New Patients of a physical therapy clinic. The new patient will answer questions on each view controller within the...
29 days ago

Want to see more codedumps? Browse the complete list or start to dump your own code.