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
RewriteEngine on | |
RewriteCond $1 !^(index\.php|images|robots\.txt) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule .* index.php/$0 [PT,L] |
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
JQuery Mobile - Override font-family themes for the whole body | |
@font-face { | |
font-family: 'RobotoRegular'; | |
src: url('../font/roboto/RobotoRegular.eot'); | |
src: url('../font/roboto/RobotoRegular.eot?#iefix') format('embedded-opentype'), | |
url('../font/roboto/RobotoRegular.woff') format('woff'), | |
url('../font/roboto/RobotoRegular.ttf') format('truetype'), | |
url('../font/roboto/RobotoRegular.svg#RobotoRegular') format('svg'); | |
font-weight: normal; | |
font-style: normal; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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/env bash | |
# Use single quotes instead of double quotes to make it work with special-character passwords | |
PASSWORD='admin321' | |
PROJECTFOLDER='project' | |
# create project folder | |
sudo mkdir "/var/www/html/${PROJECTFOLDER}" | |
# update / upgrade |
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
Host bitbucket.org | |
User git | |
Hostname bitbucket.org | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa | |
Host bitbucket-farizaqm | |
User git | |
Hostname bitbucket.org | |
PreferredAuthentications publickey |
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
Basic usage of .ajax would look something like this: | |
HTML: | |
<form id="foo"> | |
<label for="bar">A bar</label> | |
<input id="bar" name="bar" type="text" value="" /> | |
<input type="submit" value="Send" /> | |
</form> |
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
# METEOR CORE: | |
Anywhere: Meteor.isClient | |
Anywhere: Meteor.isServer | |
Anywhere: Meteor.startup(func) | |
Anywhere: Meteor.absoluteUrl([path], [options]) | |
Anywhere: Meteor.settings | |
Anywhere: Meteor.release | |
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
import { Meteor } from 'meteor/meteor'; | |
import { Mongo } from 'meteor/mongo'; | |
import { check } from 'meteor/check'; | |
import { Transactions } from './transactions.js'; | |
export const Sales = new Mongo.Collection('sales', {idGeneration: 'MONGO'}); | |
if(Meteor.isServer){ | |
Meteor.publish('sales', function() { |
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
import angular from 'angular'; | |
import angularMeteor from 'angular-meteor'; | |
import uiRouter from 'angular-ui-router'; | |
import 'chart.js/dist/Chart.js'; | |
import 'angular-chart.js/dist/angular-chart.js'; | |
import { Meteor } from 'meteor/meteor'; | |
import { Transactions } from '../../../api/transactions.js'; | |
import { countTotalStudent } from '../../../api/aggregations.js'; |
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
class MyFilter { | |
static filter( value ){ | |
return value.toLowerCase(); | |
} | |
} | |
export default MyFilter.filter; |
OlderNewer