Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
I said yeah.

Sofia Swidarowicz phynet

🤘
I said yeah.
View GitHub Profile
View gist:10732884
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellName = @"CellViewName";
CellChatEditNameGroup *aCellName = [tableView dequeueReusableCellWithIdentifier:cellName];
if (aCellName == nil) {
NSArray *views = [[NSBundle mainBundle] loadNibNamed:cellName owner:nil options:nil];
aCellName = (CellViewName *)[views objectAtIndex:0];
}
View designer.html
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
@phynet
phynet / iPhone & iPad launch images sizes.md
Last active Jan 20, 2017
Launch images size (iPhone and iPad)
View iPhone & iPad launch images sizes.md

#iPhone & iPad launch images sizes

##Tablet (iPad) ###Non-Retina (1x) Portrait: 768 x 1024 Landscape: 1024 x 768

###Retina (2x) Portrait: 1536 x 2048 Landscape: 2048 x 1536

@phynet
phynet / git add anr delete tags.md
Last active Nov 8, 2016
Delete and Add Git Remote Tags
View git add anr delete tags.md

##Delete and Add Git Tags from Remote

Delete Tags:

git tag -d Android-V-0.26.1121
git push origin :refs/tags/Android-V-0.26.1121

Add Tags:

git tag -a Android-V-0.26.1121 6258767 -m "Android-V-0.26.1121"
@phynet
phynet / Copying apk file from device to computer.md
Last active Apr 11, 2017
Copying apk file from device to computer
View Copying apk file from device to computer.md

Copying apk file from device to computer

Enter shell Android:

adb shell

List packages:

pm list packages

Get the complete path:

pm path com.myproject.something
View Open iOS Simulator using command line.md

Open iOS Simulator using command line

xcrun instruments -w "iPhone 6"

@phynet
phynet / Generate and Install IPA's file in device through Command Line.md
Last active Jan 15, 2019
Generate and Install IPA's file in device through Command Line
View Generate and Install IPA's file in device through Command Line.md

##Generate and Install IPA's file in device through Command Line

###Thanks to Mattt and phonegap's scripts

Take a note: all this steps can be automatized in a single script, if you know how to write it. (Bash or Ruby will be fine)

1.- Install your Provisioning Profile and Developer Certificate

2.- Install Shenzhen and ios-deploy: the firstone will generate the IPA file and the secondone will install it onto your device

@phynet
phynet / Kill all process that matches a given partial name.md
Last active Nov 8, 2016
Kill all process that matches a given partial name
View Kill all process that matches a given partial name.md

##Kill all process that matches a given partial name

search all process runing that match a given name. For this example is "process"

ps -ef | grep "process"

Kill all the processes that match with "process" string

pkill -f process
@phynet
phynet / Show hidden files in Mac OSX.md
Last active Apr 11, 2017
Show hidden files in Mac OSX
View Show hidden files in Mac OSX.md

Show hidden files in Mac OSX

Just open terminal and copy this command:

defaults write com.apple.finder AppleShowAllFiles YES

And restart Finder

@phynet
phynet / No JVM installation found.md
Last active Nov 8, 2016
Resolve issue "Android Studio: No JVM installation found"
View No JVM installation found.md
You can’t perform that action at this time.