Skip to content

Instantly share code, notes, and snippets.

// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
void main() {
for (var i = 0; i < 4; i++) {
print('hello $i');
}
}
@noark9
noark9 / ycm_extra_conf.py
Last active June 27, 2017 18:32
Config for iOS Project base on Objective-C supporting auto find cocoapods headers and auto find all sub dirs for include file
import os
import ycm_core
# path which you do not want include in your project search path
PROJECT_PATH_IGNORE = [ '.git', 'Pods', '.vscode', '.xcodeproj', 'fastlane', 'Images.xcassets', 'fir_build', '.xcassets', '.xcworkspace', 'shenzhenrenTests', 'shenzhenrenUITests', '.lproj', '.idea' ]
BASE_FLAGS = [
'-resource-dir',
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.0.0',
'-x objective-c',
@noark9
noark9 / 0_reuse_code.js
Created April 5, 2016 09:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console