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
upstream app_name { | |
server localhost:PORT; # PORT being the unique port number assigned in the meteor.sh file | |
} | |
server { | |
listen 80; | |
server_name domain.com www.domain.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
<select> | |
<option value='1101'>Australia</option> | |
<option value='1201'>New Zealand</option> | |
<option value='1601'>Adelie Land (France)</option> | |
<option value='7201'>Afghanistan</option> | |
<option value='2408'>Aland Islands</option> | |
<option value='3201'>Albania</option> | |
<option value='4101'>Algeria</option> | |
<option value='3101'>Andorra</option> | |
<option value='9201'>Angola</option> |
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
<select> | |
<option value='8998'>Aboriginal English, so described</option> | |
<option value='6513'>Acehnese</option> | |
<option value='9201'>Acholi</option> | |
<option value='8901'>Adnymathanha</option> | |
<option value='9299'>African Languages, nec</option> | |
<option value='1403'>Afrikaans</option> | |
<option value='9203'>Akan</option> | |
<option value='8121'>Alawa</option> | |
<option value='3901'>Albanian</option> |
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
array( '1101' => "Australia",'1201' => "New Zealand",'1601' => "Adelie Land (France)",'7201' => "Afghanistan",'2408' => "Aland Islands",'3201' => "Albania",'4101' => "Algeria",'3101' => "Andorra",'9201' => "Angola",'8401' => "Anguilla",'8402' => "Antigua and Barbuda",'8201' => "Argentina",'1602' => "Argentinian Antarctic Territory",'7202' => "Armenia",'8403' => "Aruba",'1603' => "Australian Antarctic Territory",'2301' => "Austria",'7203' => "Azerbaijan",'8404' => "Bahamas",'4201' => "Bahrain",'7101' => "Bangladesh",'8405' => "Barbados",'3301' => "Belarus",'2302' => "Belgium",'8301' => "Belize",'9101' => "Benin",'8101' => "Bermuda",'7102' => "Bhutan",'8202' => "Bolivia [Plurinational State of]",'8433' => "Bonaire (Sint Eustatius and Saba)",'3202' => "Bosnia and Herzegovina",'9202' => "Botswana",'8203' => "Brazil",'1604' => "British Antarctic Territory",'5201' => "Brunei Darussalam",'3203' => "Bulgaria",'9102' => "Burkina Faso",'9203' => "Burundi",'9104' => "Cabo Verde",'5102' => "Cambodia",'9103' => "Cameroon" |
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
array( '1201' => "English",'8998' => "Aboriginal English, so described",'6513' => "Acehnese",'9201' => "Acholi",'8901' => "Adnymathanha",'9299' => "African Languages, nec",'1403' => "Afrikaans",'9203' => "Akan",'8121' => "Alawa",'3901' => "Albanian",'8315' => "Alngith",'8603' => "Alyawarr",'9101' => "American Languages",'9214' => "Amharic",'8156' => "Amurdak",'8101' => "Anindilyakwa",'8619' => "Anmatyerr, nec",'8607' => "Antekerrepenh",'8703' => "Antikarinya",'9241' => "Anuak",'8902' => "Arabana",'4202' => "Arabic",'8699' => "Arandic, nec",'4901' => "Armenian",'8199' => "Arnhem Land and Daly River Region Languages, nec",'3903' => "Aromunian (Macedo-Romanian)",'8629' => "Arrernte, nec ",'5213' => "Assamese",'4206' => "Assyrian Neo-Aramaic",'9701' => "Auslan",'4302' => "Azeri",'8946' => "Baanbay",'8947' => "Badimaya",'6514' => "Balinese",'4104' => "Balochi",'8903' => "Bandjalang",'8904' => "Banyjima",'8948' => "Barababaraba",'8801' => "Bardi",'9242' => "Bari",'2901' => "Basque",'9243' => "Bassa",'8905' => "Batj |
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
jQuery("td:contains('Company (10)')").each( | |
function( i, el ) { | |
jQuery(el).click(); | |
jQuery("input[name='department']").val("9"); | |
jQuery("input#indx_department").val("23"); | |
jQuery("input[name='department_display']").val("Trading (18 CEM)"); | |
jQuery("input#item_addedit").click(); | |
} | |
); |
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
Function AlphaNumericOnly(strSource As String) As String | |
Dim i As Integer | |
Dim strResult As String | |
For i = 1 To Len(strSource) | |
Select Case Asc(Mid(strSource, i, 1)) | |
Case 32, 48 To 57: 'include 32 if you want to include space | |
strResult = strResult & Mid(strSource, i, 1) | |
End Select | |
Next |
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
if ( cell.length || cell ) // testing if a cell contains something other than an empty string or 0 | |
// parsing through sheet - best practice, grab entire sheet and loop through array | |
data = sht.getDataRange().getValues(); | |
for ( var r = 0; r < data.length; r += 1 ) { // rows are looped through first | |
for ( var c = 0; c < data[0].length; c += 1 ) { // columns are next | |
data[r][c]; | |
} | |
} |
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 p = 25000, // principal amount | |
i = 0.06, // annual interest rate over the life HP | |
n = 60, // number of periods in life of HP | |
y = 12, // number of payment periods per annum | |
t = true, // if payment is to be made in ADVANCE | |
r = 1 + ( i / y ), // interest rate per period = 1.005 | |
S_n = ( (r^n) - 1 ) ) / ( r - 1 ), // limiting sum of payments = 69.77 | |
repay; // repayments per period | |
if ( t ) S_n *= r; // = 70.12 |
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
function findElem( el ) { | |
return !!~el.indexOf( this.val ); | |
} | |
// for example: | |
var arr = [ [ 18, "AAA" ], [ 19, "BBB" ], [ 20, "CCC" ] ]; | |
var query = 19; | |
console.log( arr.filter( findElem, { val: query } ) ); // returns [[19, "BBB"]] |