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 WSL\BaseBundle\Util\Helper; | |
use Doctrine\ORM\Query; | |
use Doctrine\ORM\QueryBuilder; | |
use Symfony\Component\Security\Acl\Permission\MaskBuilder; | |
/* | |
* To change this template, choose Tools | Templates |
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
/** | |
* source : http://snipplr.com/view/22741/slugify-a-string-in-php/ | |
* | |
* @static | |
* @param $text | |
* @return mixed|string | |
*/ | |
static public function slugify($text) | |
{ | |
// replace non letter or digits by - |
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
varying lowp vec4 DestinationColor; // 1 | |
void main(void) { // 2 | |
gl_FragColor = DestinationColor; // 3 | |
} |
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 NDK=/tmp/android-ndk-r8b | |
# Create the standalone toolchain | |
$NDK/build/tools/make-standalone-toolchain.sh \ | |
--platform=android-9 \ | |
--install-dir=/tmp/my-android-toolchain | |
export PATH=/tmp/my-android-toolchain/bin:$PATH | |
export SYSROOT=/tmp/my-android-toolchain/sysroot | |
export CC="arm-linux-androideabi-gcc --sysroot $SYSROOT" |
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
#!/bin/bash -x | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# Extension Copyright (c) 2013 Weptun Gmbh | |
# http://www.weptun.de | |
# Extension Copyright (c) 2013 FoundryLogic LLC | |
# http://foundrylogic.com | |
# | |
# Extended by Ronan O Ciosoig January 2012 |
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
using UnityEngine; | |
using System.Collections; | |
using System; | |
using System.Collections.Generic; | |
public class AssetGPULoader : MonoBehaviour { | |
public Camera activeCamera; | |
RenderTexture _rt; | |
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
# building Visual Studio Code Debian package on ARM | |
# get source code | |
git clone [email protected]:Microsoft/vscode.git | |
cd vscode | |
# build debian package | |
./scripts/npm.sh install --arch=armhf | |
./node_modules/.bin/gulp vscode-linux-arm-build-deb |
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
sudo apt-get uninstall nodejs # uninstall nodejs 4.2.6 | |
wget https://nodejs.org/dist/v6.6.0/node-v6.6.0-linux-armv7l.tar.gz # get latest ARM build | |
tar -xvf node-v6.6.0-linux-armv7l.tar.gz # extract it | |
sudo cp node-v6.6.0-linux-armv7l /etc/node6.6 # copy extracted file to /etc folder | |
sudo ln -s /etc/node6.6/bin/node /usr/bin/node # link the nodejs executable | |
sudo ln -s /etc/node6.6/bin/npm /usr/bin/npm # link the npm executable | |
node --version # should output v6.6.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
public void DoStuff(object input) | |
{ | |
if (input == null) | |
throw new ArgumentNullException("input"); | |
// Method implementation... | |
} |