Questions tagged [dollar-sign]

Anything related to the dollar symbol `$` and its special meanings in programming. The dollar symbol is often used in various programming languages as a special symbol for various purposes.

Anything related to the dollar symbol $ and its special meanings in programming. The dollar symbol is often used in various programming languages as a special symbol for various purposes.

For example, the dollar symbol has special meaning in:

  • most flavors of regular expressions
  • PHP language
  • R language
  • some Basic dialects
  • BASH shell language
  • assembly language
  • makefiles language
  • TCL language
  • etc.
199 questions
0
votes
1 answer

What is the "$$" variable/object used in Google sites' JavaScript such as Gmail, Reader, and Search?

Possible Duplicate: What is the source of the double-dollar sign selector query function in Chrome /Ffirefox? I noticed that many major Google sites (webapps) such as Search, Gmail, and Reader define not just a $ object but also a $$ object. I'm…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
0
votes
3 answers

how does $ sign in "jQuery(function($){...}" refer to jQuery?

below, it says $ sign refers to jQuery. i need help understand how? jQuery(function($){ // Here `$` refers to jQuery });
burhan
  • 121
  • 1
  • 9
-1
votes
2 answers

Double Dollar Sign - Assign Array key=>value

I would like to create 3 different arrays which can change depending on which fields are pulled from some mysql tables. This is the code I have: // Gather db rows with query $compQuery['subCats'] = mysql_query("SELECT id,name,category FROM…
VictorKilo
  • 1,839
  • 3
  • 24
  • 39
-1
votes
1 answer

What does the dollar symbol do in a back-ticked JavaScript string?

Why we use $ sign why we can't print it like second program? let animals = 'elephants, eagles, owls, and tigers'; console.log(`${animals.slice(11,17)} and ${animals.slice(19,23)} are cool birds`); 2nd program let ani = 'elephants, eagles, owls, and…
Izza Ijaz
  • 9
  • 1
-1
votes
1 answer

$ (dollar sign) string in C# not working in VS2013

Why can't I use the dollar sign $ in Console.WriteLine()? I know that I use it for using the C# code in {} but it doesn't work and I don't know why? My code is: Console.WriteLine($"Name is : {}"); but Visual Studio gives me some error Error 1 …
Kian.Net
  • 7
  • 1
-1
votes
1 answer

Can drop=FALSE be passed to $?

I tried `$`(mtcars,cyl,drop=FALSE), but this threw an error. I know that in practice you would use [ or [[ instead, but I'm curious, can drop=FALSE be passed to $?
J. Mini
  • 1,868
  • 1
  • 9
  • 38
-1
votes
2 answers

regex ${something}

How do I use regex to get what is inside of a ${} enclosed value such as: Dont care about this. ${This is the thing I want regex to return} Not this either. Should return: This is the thing I want regex to return I've tried \${ }$ the best I got…
R. Smyth
  • 175
  • 1
  • 8
-1
votes
1 answer

How can I work when I have a dollar sign in my header on SQLite?

I'm working with SQLite and want to formulate a condition. Unfortunately, the huge file that I am working with has a dollar sign in the header. You can download the file on the following link:…
agccaesar
  • 57
  • 7
-1
votes
1 answer

preg_replace and dollar sign

preg_replace('/[^.]*$/','png','asdf.jpgea.jpg') The output is asdf.jpgea.pngpng, why there are two png in the end? Meanwhile, preg_replace('/\w$/','png','asdf.jpgea.jpg') outputs asdf.jpgea.jppng. Is the * affecting how $ behaves?
shenkwen
  • 3,536
  • 5
  • 45
  • 85
-1
votes
1 answer

SQL Format $ and Rounding

I'm trying to display the title, ISBN, Cost and category where the category has the least amount of books in it, while also trying to add a "$" in front of the output for cost while trying to round it to two decimal places. Example for category…
aofe1337
  • 67
  • 8
-1
votes
1 answer

element in R dataframe good practice

Accessing the ith element in the column bar in the dataframe foo in R can be done in two different ways: foo[i,"bar"] and foo$bar[i]. Is there any difference between them? If so, which one should be used in terms of efficiency, readability,…
ami232
  • 55
  • 8
-1
votes
1 answer

Relax NG does not support end-of-string regular expression (dollar)

I need to give some limited possibilities for an Attribute in xml, for this I am using in Relax NG validation document: myRegEx allowing to specify some regular expression the attribute need to be conform to. For some…
-1
votes
1 answer

How to create mongo schema with first name of field using character '$' dollar sign in NodeJS

I want to send data to mongo and an api endpoint from nodejs. The json format that used by another api is like below : { "$type" : "$create_account", "$api_key" : "a167abc7760c6dc3", "$user_id" : "INSERT_USER_ID", "$user_email" :…
Hendri
  • 45
  • 6
-1
votes
1 answer

Annual Rent divided by square feet display with two decimal points. (i.e. 1,000.38)

I am trying to get the Annual Rent displayed with two decimals and the rent/sq. ft. to have two decimals as well. I've already added the scripting to have these two fields automatically display dollar ammounts and commas. Any help would be…
-1
votes
1 answer

Qlikview Set Analysis

I have to compare the sales in two different years in qlikview. The set analysis done like the help suggest doesn't work =sum( {$} ORC_Mo_ImponibileRiga_Attuale) it gives me a column of…
1 2 3
13
14