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
| { | |
| "name": "bersam", | |
| "homepage": "http://bersam.org", | |
| "authors": [ | |
| "Bersam Karbasion <bersam@bersam.org>" | |
| ], | |
| "license": "MIT", | |
| "private": true, | |
| "dependencies": { | |
| "modernizr": "2.8.2", |
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 requests, json | |
| api_key = "12345678-1234" | |
| api_url = "http://somewhere.com" | |
| data = json.dumps({ | |
| 'fromLocation': 'BUD', | |
| 'toLocation': 'LON', | |
| 'departureDate': '2014-12-29T00:00:00Z', | |
| 'resultTypes': 'default', |
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 toPersianNumber(value) { | |
| if (!value) { | |
| return; | |
| } | |
| var arabicNumbers = ["١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩", "٠"], | |
| persianNumbers = ["۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹", "۰"]; | |
| for (var i = 0, numbersLen = arabicNumbers.length; i < numbersLen; i++) { | |
| value = value.replace(new RegExp(arabicNumbers[i], "g"), persianNumbers[i]); | |
| } |
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 content= content1_value +'<br>'+ content3_value + '<br>' + content4_value + '<br>' + content5_value + '<br>' + content6_value ; | |
| var content= "VIP Person" | |
| var email="me@example.com" | |
| var name="DJ Hossein Fasanghari" | |
| $.post("http://ofest.ir/site/registerorder", { 'name': name , 'email': email , 'content': content }, function (data) { | |
| console.log("Done"); | |
| }); |
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 getGridString(grid){ | |
| var a = ""; | |
| for(var i=0; i<=3; i++){ | |
| for(var j=0; j<=3; j++){ | |
| if(grid[j][i]){ | |
| a += grid[j][i].value.toString(); | |
| } else { | |
| a += "0"; | |
| } | |
| } |
NewerOlder