Skip to content

Instantly share code, notes, and snippets.

View nsams's full-sized avatar

Niko Sams nsams

View GitHub Profile
[{"id":"AD","name":"Andorra"},{"id":"AE","name":"Vereinigte Arabische Emirate"},{"id":"AF","name":"Afghanistan"},{"id":"AG","name":"Antigua und Barbuda"},{"id":"AI","name":"Anguilla"},{"id":"AL","name":"Albanien"},{"id":"AM","name":"Armenien"},{"id":"AN","name":"Niederl\u00e4ndische Antillen"},{"id":"AO","name":"Angola"},{"id":"AQ","name":"Antarktis"},{"id":"AR","name":"Argentinien"},{"id":"AS","name":"Amerikanisch-Samoa"},{"id":"AT","name":"\u00d6sterreich"},{"id":"AU","name":"Australien"},{"id":"AW","name":"Aruba"},{"id":"AX","name":"Alandinseln"},{"id":"AZ","name":"Aserbaidschan"},{"id":"BA","name":"Bosnien und Herzegowina"},{"id":"BB","name":"Barbados"},{"id":"BD","name":"Bangladesch"},{"id":"BE","name":"Belgien"},{"id":"BF","name":"Burkina Faso"},{"id":"BG","name":"Bulgarien"},{"id":"BH","name":"Bahrain"},{"id":"BI","name":"Burundi"},{"id":"BJ","name":"Benin"},{"id":"BL","name":"St. Barth\u00e9lemy"},{"id":"BM","name":"Bermuda"},{"id":"BN","name":"Brunei Darussalam"},{"id":"BO","name":"Bolivien"},{"id":"
@nsams
nsams / ext_controller_maincontroller.js
Last active August 29, 2015 13:56
Ext4 Controller.Grid example
var grid = this.mainPanel.down('grid');
Kwf.Ext4.Controller.Grid({
grid: grid
});
@include "kwf/modernizr"
@mixin loading-animation-big($animationName, $path, $file, $width, $height, $params:"") {
@include modernizr(cssanimations) {
background: url($path + '/' + $file + '.png') $params;
position: absolute;
height: $height;
width: $width;
margin: 0 auto;
.foo {
position: absolute;
asdfasdfasdfasdf-#{aaa} : 123;
}
#######################################
$ cat composer.json
{
"require": {
"npm-asset/grunt-modernizr": "0.5.2"
}
}
$ composer install
diff --git a/Kwf/Assets/Dependency/File.php b/Kwf/Assets/Dependency/File.php
index 74ef509..bd4b10e 100644
--- a/Kwf/Assets/Dependency/File.php
+++ b/Kwf/Assets/Dependency/File.php
@@ -114,6 +114,10 @@ class Kwf_Assets_Dependency_File extends Kwf_Assets_Dependency_Abstract
$cssClass = substr($cssClass, strlen($i)+1);
}
}
+ if ($this->getFileName() == getcwd().'/themes/Theme/Menu/Main/Component.scss') {
+ p($paths);
@nsams
nsams / gist:03edc0c673a5f4e9bb87
Last active August 29, 2015 14:07
Install pre commit hook
#zuerst im template den pre-commit hook eintragen (für neue+geklonte repos)
sudo ln -s $HOME/www/library/kwfscripts/pre-commit /usr/share/git-core/templates/hooks/pre-commit
#dann mit diesem script für alle bestehenden auch den verwenden:
cd ~/www
./library/kwfscripts/vivid/install-pre-commit-hook.php
$ret['assets']['files'][] = new Vkwc_Statistics_Opt_ConfigAsset();
<?php
class Vkwc_Statistics_Opt_ConfigAsset extends Kwf_Assets_Dependency_Abstract
{
public function getMimeType()
{
return 'text/javascript';
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..fd089c6
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,5 @@
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^ webroot/index.php [QSA,L]
INSERT INTO `kwf_update` (`data`) VALUES
('a:245:{i:0;s:35:"Kwc_Advanced_GoogleMap_Update_22701";i:1;s:17:"Vkwf_Update_23173";i:2;s:17:"Vkwf_Update_23304";i:3;s:17:"Vkwf_Update_23341";i:4;s:17:"Vkwf_Update_23343";i:5;s:17:"Vkwf_Update_23478";i:6;s:17:"Vkwf_Update_23643";i:7;s:17:"Vkwf_Update_23644";i:8;s:17:"Vkwf_Update_24420";i:9;s:31:"Kwc_Abstract_Image_Update_24472";i:10;s:17:"Vkwf_Update_24557";i:11;s:17:"Vkwf_Update_24623";i:12;s:17:"Vkwf_Update_24709";i:13;s:17:"Vkwf_Update_24714";i:14;s:17:"Vkwf_Update_24725";i:15;s:17:"Vkwf_Update_24818";i:16;s:17:"Vkwf_Update_24951";i:17;s:17:"Vkwf_Update_25181";i:18;s:17:"Vkwf_Update_25283";i:19;s:17:"Vkwf_Update_25405";i:20;s:17:"Vkwf_Update_25548";i:21;s:17:"Vkwf_Update_26245";i:22;s:17:"Vkwf_Update_26449";i:23;s:17:"Vkwf_Update_26464";i:24;s:17:"Vkwf_Update_26621";i:25;s:17:"Vkwf_Update_26676";i:26;s:17:"Vkwf_Update_27641";i:27;s:17:"Vkwf_Update_28185";i:28;s:17:"Vkwf_Update_28210";i:29;s:17:"Vkwf_Update_28949";i:30;s:17:"Vkwf_Update_29327";i:31;s:17:"Vkwf_Updat