This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| (defn move [from to] | |
| (.say this "move" (to-array [from to]))) | |
| (defn hanoi [num from to via] | |
| (if (= num 1) | |
| (move from to) | |
| (do | |
| (hanoi (dec num) from via to) | |
| (move from to) | |
| (hanoi (dec num) via to from)))) |
| var accessToken; | |
| var refreshToken; | |
| var accessTokenCreatedAt; | |
| var refreshTokenExpiresIn = 24 * 60 * 60; // taken from ghost core | |
| function hasAccessTokenExpired() { | |
| // consider the token as "expired" 5 minutes earlier, to be safe | |
| return new Date().getTime() > accessTokenCreatedAt + authToken.expires_in - 300; | |
| } |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| __author__ = "Deepak.G.R." | |
| __credits__ = "Sumod Hajela" | |
| __license__ = 'Public Domain' | |
| """ | |
| usage: | |
| Go to command line and type |
| #! /bin/bash | |
| time1="$(date +%s.%N)" | |
| license="GPL License: | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, |
This is a list of JavaScript projects on Github that label issues as easy or beginner-friendly.
| package com.example.myapp; | |
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.graphics.PixelFormat; | |
| import android.os.IBinder; | |
| import android.util.Log; | |
| import android.view.Gravity; | |
| import android.view.LayoutInflater; | |
| import android.view.MotionEvent; |
| $ jenkins-jobs --flush-cache -l DEBUG --conf ./config.ini test -o /tmp/jjb-test/example . \* | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('delete = jenkins_jobs.cli.subcommand.delete:DeleteSubCommand') | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('delete-all = jenkins_jobs.cli.subcommand.delete_all:DeleteAllSubCommand') | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('get-plugins-info = jenkins_jobs.cli.subcommand.get_plugins_info:GetPluginsInfoSubCommand') | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('list = jenkins_jobs.cli.subcommand.list:ListSubCommand') | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('test = jenkins_jobs.cli.subcommand.test:TestSubCommand') | |
| DEBUG:stevedore.extension:found extension EntryPoint.parse('update = jenkins_jobs.cli.subcommand.update:UpdateSubCommand') | |
| INFO:jenkins_jobs.cli.subcommand.update:Updating jobs in ['/tmp/jjb-test', '/tmp/jjb-test/blah', '/tmp/jjb-test/example'] (['*']) | |
| DEBUG:jenkins_jobs.parser:Parsing YA |