Dump your code and share it

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

shittttttt

Twig
2 days ago

wp-tmp.php

PHP
wp-tmp.php
3 days ago

old code

PHP
old code
6 days ago

File Reads for Bab

Go
7 days ago

File Read for Babies

Go
7 days ago

views/departmentdata.php

PHP
7 days ago

welcome.php

PHP
7 days ago

models/departments.php

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

Good old dump

C#
26 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...
1 month 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...
1 month 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...
1 month 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...
1 month 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> ...
1 month 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...
1 month 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...
1 month 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: { ...
1 month 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...
1 month 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...
1 month 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...
1 month 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 ...
1 month 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...
1 month 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...
1 month 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...
1 month 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...
1 month ago

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