{ Learn Code. Share Code. Teach Code. Love Code. }

  • Search

  • Search it up!

Search found 1014 matches

 Go to advanced search

Re: Count down timer

 by Filip ¦  Thu Jun 29, 2017 2:20 am ¦  Forum: Quick Snips ¦  Topic: Count down timer ¦  Replies: 3 ¦  Views: 1142

When you have a variable with seconds, doing floor(sec / 60) and sec mod 60 would return number of minutes and number of seconds respectively. Not complicated at all, yet saves time by reducing number of if branchings. Also, this code only works when minutes are less or equal to 6. Otherwise it coun...

Re: Count down timer

 by Filip ¦  Mon Jun 26, 2017 10:45 am ¦  Forum: Quick Snips ¦  Topic: Count down timer ¦  Replies: 3 ¦  Views: 1142

Why don't you just store number of seconds and then mathematically using Floor and mod determine minutes/seconds?
Personally, I would store only number of seconds or milliseconds.

Re: SpaceAge

 by Filip ¦  Mon Feb 13, 2017 1:10 am ¦  Forum: Full Software ¦  Topic: SpaceAge ¦  Replies: 4 ¦  Views: 878

CodenStuff wrote:Done.

Using "Copy link to Tweet" from Twitter you can embed a tweet using the following BBCode:
[tweet]Tweet link URL here[/tweet]
Output example:

Great work!

Re: SpaceAge

 by Filip ¦  Wed Feb 08, 2017 11:27 pm ¦  Forum: Full Software ¦  Topic: SpaceAge ¦  Replies: 4 ¦  Views: 878

PS: Could we get embed tweet BBCode? It shouldn't be too hard to implement as tweet HTML can be obtained in JSON format from following URL:

Code: Select all
https://publish.twitter.com/oembed?url=<url_to_tweet>
KR,
-Filip

Re: A web host / local server for asp.net?

 by Filip ¦  Wed Feb 01, 2017 4:34 pm ¦  Forum: Coding Help & Support ¦  Topic: A web host / local server for asp.net? ¦  Replies: 2 ¦  Views: 602

Microsoft's equivalent of Apache or other Linux web server solution is called IIS, I believe. I'm also quite sure there's a free express version available. If not, you should be able to get it from MS Imagine (ex DreamSpark) or BizSpark as a student or business owner respectively.

KR,
-Filip

Re: Chrome extensions - fascinating

 by Filip ¦  Mon Nov 07, 2016 9:32 pm ¦  Forum: Codenstuff boardroom ¦  Topic: Chrome extensions - fascinating ¦  Replies: 2 ¦  Views: 880

I did some experiments but hadn't done anything special.

Re: PHP Help with time since x happened

 by Filip ¦  Tue Nov 01, 2016 4:09 pm ¦  Forum: Help & Support ¦  Topic: PHP Help with time since x happened ¦  Replies: 5 ¦  Views: 1190

smashapps wrote:
Code: Select all
$timeadded = date("h:ia");
So you only store time in database? Not date as well?

SpaceAge

 by Filip ¦  Wed Oct 12, 2016 11:40 pm ¦  Forum: Full Software ¦  Topic: SpaceAge ¦  Replies: 4 ¦  Views: 878

Hello, a few days ago, I saw a tweet renowned astrophysicist Neil deGrasse Tyson: https://twitter.com/neiltyson/status/783795247012802560 It was his birthday on that day, so in astrophysical fashion he wrote how old is he on Mercury and Saturn (because every planet in the solar system takes longer /...

HAPPY BIRTHDAY COMATHI!!

 by Filip ¦  Sat Sep 10, 2016 7:38 pm ¦  Forum: Codenstuff boardroom ¦  Topic: HAPPY BIRTHDAY COMATHI!! ¦  Replies: 2 ¦  Views: 339

Happy Birthday to You! Happy Birthday to You! Happy Birthday dear Mathieu! Happy Birthday to You! Dear Sir, wish you all the best for your 19th Birthday! Glad you're having fun with your pus***, family & friends! Have a wonder day! All the best, -Filip https://s-media-cache-ak0.pinimg.com/236x/f5/dc...

Re: Things that make you go..Blurb

 by Filip ¦  Sat Sep 10, 2016 11:10 am ¦  Forum: Codenstuff boardroom ¦  Topic: Things that make you go..Blurb ¦  Replies: 6 ¦  Views: 479

Hey,

Also, maybe there could be a subscription system where one can subscribe to its favorite.. err.. blurbers I guess.. So whenever a blurb is posted by someone who one's subscribed to, they could get a notification in a notification thingy on top.

KR,
-Filip

  • 1
  • 2
  • 3
  • 4
  • 5
  • 102