Skip to content

Instantly share code, notes, and snippets.

View yat1ma30's full-sized avatar
๐Ÿ•
On vacation

yat1ma30 yat1ma30

๐Ÿ•
On vacation
View GitHub Profile
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
// This is only useful for spritesheets that need to be automatically sliced (Sprite Editor > Slice > Automatic)
public class AutoSpriteSlicer
{
[MenuItem("Tools/Slice Spritesheets %&s")]
@tos-kamiya
tos-kamiya / latexใฎใ‚ฝใƒผใ‚นใซๆฏŽๅบฆๆ›ธใ่จญๅฎšใ‚’ใพใจใ‚ใจใ.md
Last active November 17, 2019 17:19
latexใฎใ‚ฝใƒผใ‚นใซๆฏŽๅบฆๆ›ธใ่จญๅฎšใ‚’ใพใจใ‚ใจใ

ๆฏŽๅบฆๆฏŽๅบฆ่จญๅฎšใ™ใ‚‹ใฎใงใพใจใ‚ใฆใŠใใ€‚ ็’ฐๅขƒใฏ Ubuntu Gnome 17.04, TexLive 2016ใ€‚


่ฟฝ่จ˜(2017.07.10)

ACMใฎๆ–ฐใ—ใ„ใƒ†ใƒณใƒ—ใƒฌใƒผใƒˆใซๅฏพๅฟœใ™ใ‚‹

ใ™ในใฆใฎไพๅญ˜้–ขไฟ‚ใ‚’่ฟฝใ„ใใ‚Œใฆใ„ใพใ›ใ‚“ใŒใ€ใจใ‚Šใ‚ใˆใšๆฌกใฎใ‚ˆใ†ใซใ™ใ‚‹ใจใ€ใƒ†ใƒณใƒ—ใƒฌใƒผใƒˆใซๅŒๆขฑใ•ใ‚Œใฆใ„ใ‚‹makeใงใ‚ตใƒณใƒ—ใƒซใŒใ‚ณใƒณใƒ‘ใ‚คใƒซๅฏ่ƒฝใซใชใ‚Šใพใ—ใŸใ€‚

## Based on: http://code.activestate.com/recipes/577654/
#!/usr/bin/env python
# Send DDE Execute command to running program
from ctypes import POINTER, WINFUNCTYPE, c_char_p, c_void_p, c_int, c_ulong, c_char_p
from ctypes.wintypes import BOOL, DWORD, BYTE, INT, LPCWSTR, UINT, ULONG
import time
# DECLARE_HANDLE(name) typedef void *name;
HCONV = c_void_p # = DECLARE_HANDLE(HCONV)
@robertmarsal
robertmarsal / gist:9feaa9150926efa4175a
Created December 17, 2014 21:09
Install f.lux on Ubuntu 14.10
sudo apt-get install python-glade2 python-appindicator
git clone https://github.com/Kilian/f.lux-indicator-applet.git
cd f.lux-indicator-applet
chmod +x setup.py
sudo ./setup.py install
fluxgui
@dhbradshaw
dhbradshaw / gist:e2bdeb502b0d0d2acced
Last active August 16, 2023 17:50
Rename field using migrations in django 1.7
To change a field name in django 1.7+
1. Edit the field name in the model (but remember the old field name: you need it for step 3!)
2. Create an empty migration
$ python manage.py makemigrations --empty myApp
3. Edit the empty migration (it's in the migrations folder in your app folder, and will be the most recent migration) by adding
migrations.RenameField('MyModel', 'old_field_name', 'new_field_name'),
to the operations list.
@jbenet
jbenet / simple-git-branching-model.md
Last active May 3, 2025 18:07
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@d3m3vilurr
d3m3vilurr / feedly_api.md
Last active March 22, 2025 21:12
Unofficial Feedly API Document

IDs

  • user_id - user/:uid
  • feed_id - feed/:feed_uri
  • category_id - :user_id/category/:category (special category: global.all, global.uncategorized)
  • tag_id - :user_id/tag/:tag (special tag: global.saved)

APIs

http://cloud.feedly.com/:version/:api

@Gab-km
Gab-km / whyILeftHeroku.rst
Last active December 30, 2022 10:56
ไฝ•ๆ•…็งใฏ Heroku ใ‹ใ‚‰้›ขใ‚ŒใŸใ‹ใ€ใŠใ‚ˆใณๆ–ฐใ—ใ„ AWS ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใฎใƒกใƒข

ไฝ•ๆ•…็งใฏ Heroku ใ‹ใ‚‰้›ขใ‚ŒใŸใ‹ใ€ใŠใ‚ˆใณๆ–ฐใ—ใ„ AWS ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใฎใƒกใƒข

ๅŽŸ่‘—่€…:Adrian Holovaty
ๅŽŸๆ–‡:Why I left Heroku, and notes on my new AWS setup

้‡‘ๆ›œๆ—ฅใ€็งใฏ Heroku ใ‹ใ‚‰ Amazon Web Services(AWS) ใ‚’็›ดๆŽฅไฝฟใ†ใ‚ˆใ†ใซ Soundslice ใ‚’็งป่กŒใ—ใพใ—ใŸใ€‚็งใฏใ“ใฎๅค‰ๆ›ดใŒใงใใฆใจใฆใ‚‚ใ€ใใ†ใจใฆใ‚‚ๅฌ‰ใ—ใใฆใ€็งใŒใฉใ†ใ‚„ใฃใŸใ‹ใจใ„ใ†ใ“ใจใจใ€ใ‚‚ใ—็š†ใ•ใ‚“ใŒๅŒใ˜ใ‚ˆใ†ใช็ซ‹ๅ ดใ ใฃใŸใ‚‰ไฝ•ๆ•…ใใ‚Œใ‚’ๆคœ่จŽใ™ในใใ‹ใจใ„ใ†ใ“ใจใซใคใ„ใฆๅบƒใไผใˆใŸใ„ใจๆ€ใ„ใพใ™ใ€‚

@alucky0707
alucky0707 / tak.js
Last active December 17, 2015 09:59
็ซนๅ†…้–ขๆ•ฐใฎใƒ™ใƒณใƒใƒžใƒผใ‚ฏ(http://qiita.com/items/b3f9ab63c63e9e6399e6)
/**
* @fileOverview ็ซนๅ†…้–ขๆ•ฐใฎใƒ™ใƒณใƒใƒžใƒผใ‚ฏ
* node tak.js name x y z
* ใจๅฎŸ่กŒใ—ใฆใใ ใ•ใ„ใ€‚
* @author ใ‚ใ‚‰ใฃใใƒ(twitter:alucky0707)
* @license <a href="http://en.wikipedia.org/wiki/MIT_License">X11/MIT License</a>
*/
var
util = require('util');
@indragiek
indragiek / gist:5200264
Created March 19, 2013 21:23
Easy Core Data fetching/inserting
- (void)fetchWithRequest:(NSFetchRequest *)request
completion:(void(^)(NSArray *results, NSError *error))handler
{
[request setResultType:NSManagedObjectIDResultType];
void (^executeHandler)(NSArray *, NSError *) = ^(NSArray *results, NSError *error){
dispatch_async(dispatch_get_main_queue(), ^{
if (handler) handler(results, error);
});
};
[self.backgroundContext performBlock:^{