This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////// abstract classes, interfaces, mixins | |
enum TeacherType { mathematican, biologist, physics } | |
abstract class Person { | |
TeacherType teacherType; | |
void teach(); | |
} | |
mixin Language { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A slug is a short name using human-readable keywords to identify a web page. For example, in the following URL | |
http://www.example.com/schools/new-york-art-school | |
the slug is new-york-art-school. This post shows how to automatically generate slug using SQL in MySQL. | |
Suppose we have a table schools a field name, and we wish to generate a slug for each school using the name. First, add one field for the slug. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {src, dest, watch, series, parallel} = require('gulp'); //ES destructuring assignment | |
var sass = require("gulp-sass"), | |
autoPrefixer = require("gulp-autoprefixer"), | |
minifyCss = require("gulp-clean-css"), | |
rename = require("gulp-rename"), | |
concat = require("gulp-concat"), | |
uglify = require("gulp-uglify"), | |
plumber = require("gulp-plumber"), | |
util = require("gulp-util"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* github.com/devzom / Jakub Zomerfeld | |
* * (c) 15 / 10 / 2020 | |
* Function for setting an pseudo element property :after / :before | |
*/ | |
// | |
// ES6< | |
function setPseudoElementContent(selector, value) { | |
document.styleSheets[0].addRule(selector, 'content: "' + value + '";'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! debug.css | MIT License | | |
Jakub Zomerfeld | |
/* Instruction: | |
just add an 'debug' attribute to main html element ex. | |
<div id="#app" debug> | |
</div> | |
*/ | |
[debug], [debug] *:not(g):not(path) { | |
color: hsla(210, 100%, 100%, 0.9) !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
#You can utilize webpack's require.context() to list files in a given directory at compile time. | |
# https://webpack.js.org/guides/dependency-management/ | |
*/ | |
const illustrations = require.context( | |
'@/assets/illustrations', | |
true, | |
/^.*\.jpg$/ | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hash from 'object-hash' | |
import sizeof from 'object-sizeof' | |
import lruCache from 'lru-cache' | |
const cacheEnabled = true | |
const cacheMaxAge = 30 * 60 * 1000 | |
const cacheMaxSize = 128 * 1000 * 1000 | |
const getCacheKey = obj => hash(obj) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Polish numbers": { | |
"Correct": "504324123", | |
"Correct +": "+48 722 833 444", | |
"Incorrect": "23232323", | |
"Zeros":"000 000 000", | |
"Zero +":"000 444 222" | |
} | |
} |
OlderNewer