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
package main | |
import ( | |
"fmt" | |
"math" | |
"time" | |
) | |
func epoch_seconds(date time.Time) (sec float64) { | |
/* Returns the number of seconds from the epoch to date. */ |
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 re | |
import os | |
from collections import Counter | |
class Farsi: | |
PUNCTS = r"""'".,/?\!@#$%^&*()_\-+~`:;{}\[\]""" | |
LOCAL_PUNCTS = '،!٪:؛“”‘ـ٬؟' |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func _confidence(ups int32, downs int32) float64 { | |
d := ups + downs | |
var n float64 = float64(d) |
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
package ir.begokie.helper; | |
import java.util.Date; | |
import java.util.Locale; | |
public class Utilities { | |
private class SolarCalendar { |
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
{ | |
"Inst": null, | |
"Err": null, | |
"Data": [ | |
{ | |
"node": { | |
"__typename": "GraphImage", | |
"display_resources": [ | |
{ | |
"config_height": 799, |