This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am tachang on github. | |
* I am tachang (https://keybase.io/tachang) on keybase. | |
* I have a public key whose fingerprint is A6A3 C419 9CBD 8EDF 649C 934B 451E 9BC4 9FA8 2390 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generates a frame of data using GL commands. | |
*/ | |
private void generateSurfaceFrame(int frameIndex) { | |
frameIndex %= 8; | |
int startX, startY; | |
if (frameIndex < 4) { | |
// (0,0) is bottom-left in GL | |
startX = frameIndex * (mWidth / 4); | |
startY = mHeight / 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
fdsaf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option 1) | |
<div> | |
<h3>Header</h3> | |
</div> | |
- Use position relative on h3. Problem is that it looks on the outside but the markup is on the inside. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop crashplan temporarily | |
/etc/init.d/crashplan stop | |
# Unmount the datasnapshot | |
umount /mnt/datasnapshot | |
# Destroy snapshot and recreate it | |
lvremove -f /dev/example-vg/datasnapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am tachang on github. | |
* I am tachang (https://keybase.io/tachang) on keybase. | |
* I have a public key whose fingerprint is 1C43 0026 4CF6 D6D5 BEFF F03B DC2A 8174 F1BB CD35 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Image inherits from imagekit.models.ImageModel | |
class Image(ImageModel): | |
def retrieve_upload_path(image, filename): | |
fname, dot, extension = filename.rpartition('.') | |
return "images/%s.%s" % ( image.uuid, extension) | |
name = models.CharField(max_length=100, blank=True) | |
image = models.ImageField(upload_to=retrieve_upload_path) | |
num_views = models.PositiveIntegerField(editable=False, default=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas class="event-image-canvas" width="150" height="140" data-bind="drawCanvas: showImage"></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
May need to give world read/write permissions to Arduino device: | |
chmod o+rw /dev/ttyUSB0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
display_meeting_instructions = False | |
if user_can_edit: | |
display_meeting_instructions = True | |
if request.user.is_authenticated() and Ticket.objects.filter(event=event, user=request.user).exists(): | |
display_meeting_instructions = True | |
{% if display_meeting_instructions and event.meeting_instructions %} | |
{{ event.meeting_instructions }} | |
{% endif %} |
OlderNewer