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
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 |
| (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)))) |
| 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; |
| 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; | |
| } |
| #! /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.
| .board { | |
| width: 100%; | |
| height: 100%; | |
| /* background-color: #0079bf; */ | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .board, | |
| .board textarea { |