Skip to content

Instantly share code, notes, and snippets.

View tmsnvd's full-sized avatar
🎯
Focusing

Tomas Nev. tmsnvd

🎯
Focusing
  • devbridge
  • Kaunas, Lithuania
View GitHub Profile
@tmsnvd
tmsnvd / gist:254b64cb547ec6dfd899
Last active August 29, 2015 14:01
Cordova installation on Windows
Download Apache Ant
Download Android SDK
Set Enviroment Vars:
ANDROID_HOME with the c:\sdk\android value
ANT_HOME with the c:\tools\apache-ant
Add to PATH:
;%PATH%\tools;%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
@tmsnvd
tmsnvd / gist:11fbc04c60d13f654fbf
Created May 10, 2014 19:51
Angular optimization
http://blog.scalyr.com/2013/11/25/angular-optimizations-released/
http://davej.github.io/angular-classy/
http://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/
@tmsnvd
tmsnvd / designer.html
Created June 30, 2014 12:16
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<polymer-element name="my-element">
<template>
<style>
<?php
namespace tests\unit\models;
use app\tests\fixtures\UserFixture;
use Yii;
use yii\codeception\DbTestCase;
use Codeception\Specify;
use Codeception\Util\Debug;
use app\models\User;
Error
PHP Fatal Error – yii\base\ErrorException
Maximum function nesting level of '100' reached, aborting!
1. in /var/www/vendor/composer/ClassLoader.php at line 310
301302303304305306307308309310311312313314315316317318319
if ($file === null) {
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'test',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'language' => 'lt-LT',
'components' => [
@tmsnvd
tmsnvd / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
class EmployeeController extends Controller
{
/**
* @var string the default layout for the views. Defaults to '//layouts/column2', meaning
* using two-column layout. See 'protected/views/layouts/column2.php'.
*/
public $layout = '//layouts/column2';
const http = require('http');
const httpProxy = require('http-proxy');
const express = require('express'),
bodyParser = require('body-parser');
// listen port
const port = 9997;
// create proxy server
const proxy = httpProxy.createProxyServer({});
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst laragon.portable
cinst chrome
cinst heidisql
cinst composer
cinst slack
cinst phpstorm
cinst vscode