Update: feeling adventurous? Clone or fork the xkcd clock! If you just want to see it in action or get a glimpse of how it works, keep reading.
The date in [xkcd's comic number 1340][1] [does not change][2].
Update: feeling adventurous? Clone or fork the xkcd clock! If you just want to see it in action or get a glimpse of how it works, keep reading.
The date in [xkcd's comic number 1340][1] [does not change][2].
#include <curses.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int b[32], *d=&b[16], q, v, y; | |
char*m[]={ | |
"CBA@GFEDKJIHONML", | |
"@DHLAEIMBFJNCGKO", | |
"LHD@MIEANJFBOKGC", |
(function(d) { | |
var dl = d.createElement('a'); | |
dl.innerText = 'Download MP3'; | |
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
dl.download = d.querySelector('em').innerText+".mp3"; | |
d.querySelector('.primary').appendChild(dl); | |
dl.style.marginLeft = '10px'; | |
dl.style.color = 'red'; | |
dl.style.fontWeight = 700; | |
})(document); |
#include <objc/runtime.h> | |
static char dynamicPropertyKey; | |
@interface TestClass (ParseObject) | |
@property (nonatomic) NSObject *dynamicProperty; | |
@end |
import UIKit | |
// Swift rewrite challenge | |
// Starting point: https://gist.github.com/jkereako/200342b66b5416fd715a#file-scale-and-crop-image-swift | |
func scaleAndCropImage( | |
image: UIImage, | |
toSize size: CGSize, | |
fitImage: Bool = true | |
) -> UIImage { |
// | |
// Contact.swift | |
// FriendLender | |
// | |
// Created by Logan Wright on 9/22/14. | |
// Copyright (c) 2014 lowriDevs. All rights reserved. | |
// | |
import UIKit | |
import AddressBook |
// | |
// CJCAnonymousFacesFilter.h | |
// CJC.FaceMaskingDemo | |
// | |
// Created by Chris Cavanagh on 11/9/13. | |
// Copyright (c) 2013 Chris Cavanagh. All rights reserved. | |
// | |
#import <CoreImage/CoreImage.h> |
function extractPatterns(sample){ | |
var markers = {}; | |
sample.forEach(function(element, i){ | |
if(isNaN( Number(element) )){ | |
var parts = element.split(/(?=[A-Z])/); | |
parts.forEach(function(part){ | |
if(!markers[part]){ | |
markers[part] = []; | |
} | |
markers[part].push(i+1); |
import Foundation | |
import UIKit | |
@IBDesignable | |
class DesignableView: UIView { | |
} | |
@IBDesignable | |
class DesignableButton: UIButton { | |
} |
## Transmission - Origin Unknown -Tuned Resonators in C minor | |
## Random Seed Version: 746742 | |
## Coded by Nanomancer - Distributed under Creative Commons Non-Commercial Attribution license - :) | |
## 26.03.2016 | |
## Watch a video produced with screen grabs of the code and Nebulae: | |
## https://www.youtube.com/watch?v=5fwGHAdoaXA&feature=youtu.be | |
####################### | |
max_t = 8 # Adjust the run time of the piece |