This file contains 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
export PS1='\[\e[0;36m\][\A] \u@\h:\[\e[0m\e[0;32m\]\W\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[0;37m\] \$\[\e[0m\]' |
This file contains 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
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
This file contains 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
.spriteHelper(@image, @x, @y, @spriteX, @spriteY) { | |
background: url("img/@{image}.png") no-repeat; | |
background-position: -(@x*@spriteX) -(@y*@spriteY); | |
} | |
.sprite(@image, @x, @y) when (@image = sprite1), (@image = sprite3){ | |
@spriteX: 32px; | |
@spriteY: 16px; | |
.spriteHelper(@image, @x, @y, @spriteX, @spriteY); | |
} | |
.sprite(@image, @x, @y) when (@image = sprite2){ |
This file contains 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
{extends file="helpers/form/form.tpl"} | |
{block name="input"} | |
{if $input.type == 'switch' && $smarty.const._PS_VERSION_|@addcslashes:'\'' < '1.6'} | |
{foreach $input.values as $value} | |
<input type="radio" name="{$input.name|escape:'htmlall':'UTF-8'}" | |
id="{$input.name|escape:'htmlall':'UTF-8'}_{$value.id|escape:'htmlall':'UTF-8'}" | |
value="{$value.value|escape:'htmlall':'UTF-8'}" | |
{if $fields_value[$input.name] == $value.value}checked="checked"{/if} | |
{if isset($input.disabled) && $input.disabled}disabled="disabled"{/if} /> |
This file contains 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
<?php | |
/** | |
* Ajax entry | |
* | |
* @category Prestashop | |
* @category Module | |
* @author Samdha <contact@samdha.net> | |
* @copyright Samdha | |
* @license commercial license see license.txt | |
*/ |
This file contains 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
var builder = require('xmlbuilder'); | |
var filewalker = require('filewalker'); | |
var prestashop_langs_dir = './langs'; // Relative or absolute path to language folder in install dir | |
var cldr_data = './node_modules/cldr-data'; // Cldr data location | |
var _ = require('lodash'); | |
var fs = require('fs'); | |
var missing_langs = []; | |
var found_langs = []; | |
var filewalking_done = false; | |
var analyzing_dirs = 0; |
This file contains 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
SET FOREIGN_KEY_CHECKS=0; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_accessory` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_address` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_address_format` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_alias` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_attachment` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_attachment_lang` ; | |
DROP TABLE IF EXISTS `newpresta17`.`ps_attribute` ; |
This file contains 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
function interceptFunction (object, fnName, options) { | |
var noop = function () {}; | |
var fnToWrap = object[fnName]; | |
var before = options.before || noop; | |
var after = options.after || noop; | |
object[fnName] = function () { | |
before.apply(this, arguments); | |
var result = fnToWrap.apply(this, arguments); | |
after.apply(this, arguments); |
This file contains 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
<?php | |
namespace App\Search; | |
/** | |
* This trait must be used next to the Laravel\Scout\Searchable trait | |
* | |
*/ | |
trait GeoSearchable | |
{ |
This file contains 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
#!/usr/bin/nodejs | |
var fs = require('fs'); | |
var spawn = require('child_process').spawn; | |
function parseSubmodules(data) { | |
var lines = data.split(/\n+/); | |
var modules = {}; | |
var currentPath; |
OlderNewer