repos.txt
contains a list of repository names in{UserName}/{RepoName}
format, e.g.IanZhao/to-be-deleted
. use this file to track all repositories you want to delete.- Open
fetchSaveRepo.js
and update url with your github username. - you need
node-fetch
to fetch contents, just do anpm init
with default settings and runnpm install node-fetch
. - run
node fetchSaveRepo.js
- Generate a Authorization Token for repo delete access token
- Copy the token and put in in place
TOKEN_HERE
indeleteRepos.sh
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
// LXTouchGestureRecognizer.h | |
// | |
// Copyright (c) 2015 Stan Chang Khin Boon (http://lxcid.com) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
#import <UIKit/UIKit.h> | |
@interface UIButton (TCCustomFont) | |
@property (nonatomic, copy) NSString* fontName; | |
@end | |
@implementation UIButton (TCCustomFont) | |
- (NSString *)fontName { | |
return self.titleLabel.font.fontName; |
http://www.infoq.com/presentations/Simple-Made-Easy | |
http://www.infoq.com/presentations/integration-tests-scam | |
http://blog.thecodewhisperer.com/2010/09/14/when-is-it-safe-to-introduce-test-doubles | |
http://youtu.be/yTkzNHF6rMs | |
http://pyvideo.org/video/1670/boundaries | |
http://skillsmatter.com/podcast/ajax-ria/enumerators | |
http://alistair.cockburn.us/Hexagonal+architecture | |
http://c2.com/cgi/wiki?PortsAndAdaptersArchitecture | |
http://www.confreaks.com/videos/977-goruco2012-hexagonal-rails | |
http://www.confreaks.com/videos/1255-rockymtnruby2012-to-mock-or-not-to-mock |
-
The status bar in iOS 7 is transparent, the view behind it shows through.
-
The style of the status bar refers to the appearances of its content. In iOS 7, the status bar content is either dark (
UIStatusBarStyleDefault
) or light (UIStatusBarStyleLightContent
). BothUIStatusBarStyleBlackTranslucent
andUIStatusBarStyleBlackOpaque
are deprecated in iOS 7.0. UseUIStatusBarStyleLightContent
instead.
- If below the status bar is a navigation bar, the status bar style will be adjusted to match the navigation bar style (
UINavigationBar.barStyle
):
// Macro - Set the flag for block completion | |
#define StartBlock() __block BOOL waitingForBlock = YES | |
// Macro - Set the flag to stop the loop | |
#define EndBlock() waitingForBlock = NO | |
// Macro - Wait and loop until flag is set | |
#define WaitUntilBlockCompletes() WaitWhile(waitingForBlock) | |
// Macro - Wait for condition to be NO/false in blocks and asynchronous calls |
#import <Foundation/Foundation.h> | |
@class EventSource; | |
@protocol EventSourceDelegate <NSObject> | |
@optional | |
- (void)eventSourceDidOpenConnection:(EventSource*)eventSource; | |
- (void)eventSource:(EventSource*)eventSource didFailWithError:(NSError*)error; |
Follow the instructions here: https://www.linode.com/wiki/index.php/PV-GRUB#Ubuntu_12.04_Precise
Basically:
apt-get update
apt-get install -y linux-virtual grub-legacy-ec2