Skip to content

Instantly share code, notes, and snippets.

View metadata-generation-build-step-debug
#!/usr/bin/env python
import os
import subprocess
import shlex
import sys
def env(env_name):
return os.environ[env_name]
View CustomMessageCompositeViewControllerDelegate
var CustomMessageCompositeViewControllerDelegate = NSObject.extend({
// pass resolve and reject functions to the delegate instance and save them as instance properties
initWithResolveReject: function(resolve, reject) {
var self = this.super.init();
if(self) {
this.resolve = resolve;
this.reject = reject;
}
return self;
@ivanbuhov
ivanbuhov / app.css
Last active Jan 4, 2017
Proof of concept NativeScript app whcih is using HomeKit API
View app.css
.title {
font-size: 30;
horizontal-align: center;
margin:20;
}
button {
font-size: 42;
horizontal-align: center;
}
View MagicSquare
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MagicSquare
{
class MagicSquare
{
View GoldbachConjecture
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GoldbachConjecture
{
class GoldbachConjecture
View ReduceFilePath
using System;
using System.Collections.Generic;
using System.Linq;
namespace ReduceFilePath
{
class ReduceFilePath
{
public const string CurrentFolderToken = ".";
public const string ParentFolderToken = "..";