Skip to content

Instantly share code, notes, and snippets.

View klukiyan's full-sized avatar
🎯
Focusing

Kiril Lukiyan klukiyan

🎯
Focusing
View GitHub Profile
@sr2ds
sr2ds / PdfThumbnail.vue
Created November 6, 2020 18:21
A simple PDF Thumbnail Component Viewer for VueJs
<template>
<div>
<div class="row">
<div class="col-sm-4">
<a :href="fileUrl">
<canvas :id="_uid" />
</a>
</div>
</div>
</div>
@daliborgogic
daliborgogic / default.vue
Last active October 16, 2020 17:59
Vantablack? Nuxt.js simple theme switch
<script>
export default {
computed: {
theme () {
const [color, backgroundColor] = this.$store.state.theme
return {
'--color': color,
'--background-color': backgroundColor
}
}
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active May 15, 2024 06:38
Online Resources For Web Developers (No Downloading)
#server side:
#server live directory: /var/www/domain.com
#server repository: /var/repo/site.git
1. clone project from git/bitbucket into /var/www/domain.com or init the folder by "git init".
2. go to /var/repo/site.git and init the folder as git bare
$git init --bare
--bare means that our folder will have no source files, just the version control.
@anton-kotik
anton-kotik / zf2-sql-examples.php
Last active November 13, 2022 18:54
Zend Framework 2 database SQL examples
<?php
use Zend\Db\Sql\Expression;
use Zend\Db\Sql\Predicate\Operator;
use Zend\Db\Sql\Select;
use Zend\Db\Sql\Where;
use Zend\Db\TableGateway\TableGateway;
$adapter = $this->getServiceLocator()->get('Zend\Db\Adapter\Adapter');
$table = new TableGateway('users', $adapter);
@ghinda
ghinda / git-commit-csv-export.sh
Last active May 6, 2024 07:07
git csv export of commits in the last month
git log --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv
@hakre
hakre / imap-attachment.php
Created April 11, 2012 22:50
Save attachments from imap messages to disk.
<?php
/**
* imap-attachment.php
*
* @author hakre <hakre.wordpress.com>
* @link http://stackoverflow.com/questions/9974334/how-to-download-mails-attachment-to-a-specific-folder-using-imap-and-php
*/
/**
* Utility Class