Skip to content

Instantly share code, notes, and snippets.

View uoxiu's full-sized avatar
🎯
Focusing

Nicolae Godina uoxiu

🎯
Focusing
View GitHub Profile
<?php
namespace App\Models;
use Illuminate\Support\Facades\DB;
trait EloquentNamesTrait
{
protected static $tableName = null;
<?php
$folder = 'W:\\test\\';
$infile = $folder . 'in.docx';
$outFile = $folder . 'out.docx';
$targetFiles = [
'word/document.xml'
];
@uoxiu
uoxiu / 999.md remove dublicates.js
Created May 8, 2015 22:28
999.md remove dublicates
var seen = {};
$('.ads-list-photo-item img').each(function() {
var txt = $(this).attr('src');
if (seen[txt])
$(this).closest('.ads-list-photo-item').remove();
else
seen[txt] = true;
});
@uoxiu
uoxiu / gist:971a252c5c97eda9f0e7
Created July 29, 2014 16:11
Primarii actelocale.md
{
"100":{
"name":"CHISINAU mun.",
"list":{
"172":"Chişinău",
"173":"Consiliul Municipal Chişinău",
"184":"Coloniţa",
"219":"Primăria comuna Tohatin",
"222":"Ghidighici",
"232":"Pretura sectorului Centru",
AF Afghanistan
AL Albania
DZ Algeria
AS American Samoa
AD Andorra
AO Angola
AI Anguilla
AQ Antarctica
AG Antigua and Barbuda
AR Argentina