Skip to content

Instantly share code, notes, and snippets.

View HighSoftWare96's full-sized avatar
🐢
Working

Giovanni Bertoncelli HighSoftWare96

🐢
Working
View GitHub Profile
@ocean90
ocean90 / box-shadow.html
Last active September 3, 2024 16:56
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@siongui
siongui / gist:4969449
Last active April 7, 2020 08:49
AngularJS safe $apply (prevent "Error: $apply already in progress")
$scope.safeApply = function(fn) {
var phase = this.$root.$$phase;
if(phase == '$apply' || phase == '$digest')
this.$eval(fn);
else
this.$apply(fn);
};
// OR
@lecho
lecho / shadow.xml
Created September 7, 2013 07:01
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@tbarisic
tbarisic / angular2-simple-breadcrumbs.ts
Last active July 24, 2019 14:06
Angular 2 router breadcrumbs example
/*
For each route that you want to appear in breadcrumbs you have to set breadcrumb name in route data as 'breadcrumb' property or in resolve as 'breadcrumb' property.
Import and set breadcrumb component where you want it-->
Route config examples
Route data:
{
path: 'some-path', component: SomeComponent,
data: {
breadcrumb: 'INSERT_BREADCRUMB_NAME'
}