This file contains hidden or 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 app = angular.module('demo', ['ionic', 'ngCordova', 'demo.controllers', 'demo.services']); | |
| var controllers = angular.module('demo.controllers', []); | |
| var services = angular.module('demo.services', []); |
This file contains hidden or 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
| import { Dispatcher } from './store'; | |
| export default Vue.component('some-component', { | |
| template, | |
| created() { | |
| this.fetchData(); | |
| }, | |
| methods: { | |
| /** | |
| * Fetch our data. |
This file contains hidden or 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 | |
| function gcd($a, $b){ | |
| $r = $a%$b; | |
| while ($r!=0){ | |
| $a = $b; | |
| $b = $r; | |
| $r = $a%$b; | |
| } | |
| return $b; | |
| } |
Laravel Mix's Webpack Configuration for auto dependencies extract and Workbox Caching strategies
This file contains hidden or 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 Force = { Skywalker, RegularFolk, of: Skywalker }; | |
| function Skywalker(v) { | |
| return { map, chain, ap }; | |
| function map(fn) { | |
| return Skywalker(fn(v)); | |
| } | |
| function chain(fn) { | |
| return fn(v); | |
| } |
This file contains hidden or 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
| ### Step 1: Set the RSA Public Key in Both SCM (BitBucket and Github) | |
| ### Step 2: Ensure StrictHostKeyChecking no in /etc/ssh/ssh_config | |
| ### Step 3: Pass repo names as Parameter while executing the Script | |
| ### For Example: bash test.sh reponame | |
| ### Step 4: Make Sure Ensure You have same repo name in both SCM | |
| for i in "$@" | |
| do | |
| git clone git@bitbucket.org:username/${i}.git | |
| cd bbgg |
This file contains hidden or 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
| // src/index.js | |
| /* eslint-disable no-console */ | |
| const logger = require('winston'); | |
| const app = require('./app'); | |
| const port = app.get('port'); | |
| process.on('unhandledRejection', (reason, p) => { | |
| logger.error('Unhandled Rejection at: Promise ', p, reason); |
This file contains hidden or 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 | |
| /** | |
| * This service provider handles a few custom validation rules. | |
| * | |
| * PHP version 5.5.9 | |
| * @package Snipe-IT | |
| * @version v3.0 | |
| */ | |
| namespace App\Providers; |
This file contains hidden or 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
| @echo off | |
| if "%1"=="" goto blank | |
| echo Squashing %1 commits... | |
| git reset --soft HEAD~%1 | |
| git log --format=%%B%%n --reverse "HEAD@{1}" -n %1 > _msg.txt | |
| git commit -t _msg.txt | |
| del _msg.txt | |
| echo Done! |
OlderNewer