A cohomology theory of the adjoint of Hopf algebras, via deformations, is presented by means of diagrammatic techniques. Explicit calculations are provided in the cases of group algebras, function algebras on groups, and the bosonization of the super line. As applications, solutions to the YBE are given and quandle cocycles are constructed from groupoid cocycles.in the case of a group algebra, the function algebra on a group, and a calculation of the 1-and 2-dimensional cohomology of the bosonization of the superline are presented in Section 5. Interestingly, the group algebra and the function algebra on a group are cohomologically different. Moreover, the conditions that result when a function on the group algebra satisfies the cocycle condition coincide with the definition of groupoid cohomology. This relationship is given in Section 6, along with a construction of quandle 3-cocycles from groupoid 3-cocycles. In Section 7, we use the deformation cocycles to construct solutions to the Yang-Baxter equation.